diff options
| author | Federico Stra <stra.federico@gmail.com> | 2023-09-14 21:33:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-14 19:33:56 +0000 |
| commit | 4f952c7e0e36dab15f9359f55eb8714f8fe92bcf (patch) | |
| tree | 6f211f6b6a022b3801e3c9a58c13e457a2e9e5e6 /lib/std/math.zig | |
| parent | 30e1883834ac630d23cdb0e28793d76219397118 (diff) | |
| download | zig-4f952c7e0e36dab15f9359f55eb8714f8fe92bcf.tar.gz zig-4f952c7e0e36dab15f9359f55eb8714f8fe92bcf.zip | |
std.math.log_int: implement integer logarithm without using float math
Diffstat (limited to 'lib/std/math.zig')
| -rw-r--r-- | lib/std/math.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/std/math.zig b/lib/std/math.zig index 558629b743..dccb127c95 100644 --- a/lib/std/math.zig +++ b/lib/std/math.zig @@ -241,6 +241,7 @@ pub const log = @import("math/log.zig").log; pub const log2 = @import("math/log2.zig").log2; pub const log10 = @import("math/log10.zig").log10; pub const log10_int = @import("math/log10.zig").log10_int; +pub const log_int = @import("math/log_int.zig").log_int; pub const log1p = @import("math/log1p.zig").log1p; pub const asinh = @import("math/asinh.zig").asinh; pub const acosh = @import("math/acosh.zig").acosh; @@ -362,6 +363,7 @@ test { _ = log2; _ = log10; _ = log10_int; + _ = log_int; _ = log1p; _ = asinh; _ = acosh; |
