aboutsummaryrefslogtreecommitdiff
path: root/std/math/log.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-28 04:28:42 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-28 04:28:42 -0400
commitb8ed0cb3741533e036ee05faa165d2f0c49064f4 (patch)
treeb49d168bb11b5fe40748a38cb758ddf6e68d7e04 /std/math/log.zig
parentd7a539906d2dd49872abb161f3d3364c9641ccd2 (diff)
downloadzig-b8ed0cb3741533e036ee05faa165d2f0c49064f4.tar.gz
zig-b8ed0cb3741533e036ee05faa165d2f0c49064f4.zip
remove workaround for LLVM not respecting "nobuiltin"
now that we depend on LLVM 5.0.0 we can remove the workaround. closes #393
Diffstat (limited to 'std/math/log.zig')
-rw-r--r--std/math/log.zig5
1 files changed, 1 insertions, 4 deletions
diff --git a/std/math/log.zig b/std/math/log.zig
index 180c3aeb31..556113578f 100644
--- a/std/math/log.zig
+++ b/std/math/log.zig
@@ -3,10 +3,7 @@ const builtin = @import("builtin");
const TypeId = builtin.TypeId;
const assert = @import("../debug.zig").assert;
-// TODO issue #393
-pub const log = log_workaround;
-
-fn log_workaround(comptime T: type, base: T, x: T) -> T {
+pub fn log(comptime T: type, base: T, x: T) -> T {
if (base == 2) {
return math.log2(x);
} else if (base == 10) {