diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-28 04:28:42 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-28 04:28:42 -0400 |
| commit | b8ed0cb3741533e036ee05faa165d2f0c49064f4 (patch) | |
| tree | b49d168bb11b5fe40748a38cb758ddf6e68d7e04 /std/math/asin.zig | |
| parent | d7a539906d2dd49872abb161f3d3364c9641ccd2 (diff) | |
| download | zig-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/asin.zig')
| -rw-r--r-- | std/math/asin.zig | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/std/math/asin.zig b/std/math/asin.zig index 3f705a9cf7..b0368b5d66 100644 --- a/std/math/asin.zig +++ b/std/math/asin.zig @@ -6,10 +6,7 @@ const math = @import("index.zig"); const assert = @import("../debug.zig").assert; -pub const asin = asin_workaround; - -// TODO issue #393 -pub fn asin_workaround(x: var) -> @typeOf(x) { +pub fn asin(x: var) -> @typeOf(x) { const T = @typeOf(x); switch (T) { f32 => @inlineCall(asin32, x), @@ -138,8 +135,8 @@ fn asin64(x: f64) -> f64 { } test "math.asin" { - assert(asin_workaround(f32(0.0)) == asin32(0.0)); - assert(asin_workaround(f64(0.0)) == asin64(0.0)); + assert(asin(f32(0.0)) == asin32(0.0)); + assert(asin(f64(0.0)) == asin64(0.0)); } test "math.asin32" { |
