Skip to content

Commit 9e19969

Browse files
AdamGoertzandrewrk
authored andcommitted
Remove math.ln in favor of @log
1 parent 4d7dd16 commit 9e19969

File tree

3 files changed

+1
-37
lines changed

3 files changed

+1
-37
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,6 @@ set(ZIG_STAGE2_SOURCES
273273
"${CMAKE_SOURCE_DIR}/lib/std/math/frexp.zig"
274274
"${CMAKE_SOURCE_DIR}/lib/std/math/isinf.zig"
275275
"${CMAKE_SOURCE_DIR}/lib/std/math/isnan.zig"
276-
"${CMAKE_SOURCE_DIR}/lib/std/math/ln.zig"
277276
"${CMAKE_SOURCE_DIR}/lib/std/math/log.zig"
278277
"${CMAKE_SOURCE_DIR}/lib/std/math/log10.zig"
279278
"${CMAKE_SOURCE_DIR}/lib/std/math/log2.zig"

lib/std/math.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ pub const atan2 = @import("math/atan2.zig").atan2;
244244
pub const hypot = @import("math/hypot.zig").hypot;
245245
pub const expm1 = @import("math/expm1.zig").expm1;
246246
pub const ilogb = @import("math/ilogb.zig").ilogb;
247-
pub const ln = @import("math/ln.zig").ln;
248247
pub const log = @import("math/log.zig").log;
249248
pub const log2 = @import("math/log2.zig").log2;
250249
pub const log10 = @import("math/log10.zig").log10;
@@ -395,7 +394,6 @@ test {
395394
_ = hypot;
396395
_ = expm1;
397396
_ = ilogb;
398-
_ = ln;
399397
_ = log;
400398
_ = log2;
401399
_ = log10;
@@ -438,6 +436,7 @@ pub const min = @compileError("deprecated; use @min instead");
438436
pub const max = @compileError("deprecated; use @max instead");
439437
pub const min3 = @compileError("deprecated; use @min instead");
440438
pub const max3 = @compileError("deprecated; use @max instead");
439+
pub const ln = @compileError("deprecated; use @log instead");
441440

442441
/// Limit val to the inclusive range [lower, upper].
443442
pub fn clamp(val: anytype, lower: anytype, upper: anytype) @TypeOf(val, lower, upper) {

lib/std/math/ln.zig

Lines changed: 0 additions & 34 deletions
This file was deleted.

0 commit comments

Comments
 (0)