From b8ed0cb3741533e036ee05faa165d2f0c49064f4 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Mon, 28 Aug 2017 04:28:42 -0400 Subject: remove workaround for LLVM not respecting "nobuiltin" now that we depend on LLVM 5.0.0 we can remove the workaround. closes #393 --- std/math/log.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'std/math/log.zig') 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) { -- cgit v1.2.3