aboutsummaryrefslogtreecommitdiff
path: root/std/math/atan.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/atan.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/atan.zig')
-rw-r--r--std/math/atan.zig9
1 files changed, 3 insertions, 6 deletions
diff --git a/std/math/atan.zig b/std/math/atan.zig
index 0c17617245..5f3e207960 100644
--- a/std/math/atan.zig
+++ b/std/math/atan.zig
@@ -6,10 +6,7 @@
const math = @import("index.zig");
const assert = @import("../debug.zig").assert;
-// TODO issue #393
-pub const atan = atan_workaround;
-
-pub fn atan_workaround(x: var) -> @typeOf(x) {
+pub fn atan(x: var) -> @typeOf(x) {
const T = @typeOf(x);
switch (T) {
f32 => @inlineCall(atan32, x),
@@ -210,8 +207,8 @@ fn atan64(x_: f64) -> f64 {
}
test "math.atan" {
- assert(atan_workaround(f32(0.2)) == atan32(0.2));
- assert(atan_workaround(f64(0.2)) == atan64(0.2));
+ assert(atan(f32(0.2)) == atan32(0.2));
+ assert(atan(f64(0.2)) == atan64(0.2));
}
test "math.atan32" {