diff options
| author | Jacob Young <jacobly0@users.noreply.github.com> | 2023-10-19 02:08:34 -0400 |
|---|---|---|
| committer | Jacob Young <jacobly0@users.noreply.github.com> | 2023-10-21 10:55:41 -0400 |
| commit | 2e6e39a7004dae626ad3088cbf1e652f157e6db8 (patch) | |
| tree | 5f166132424d3da5d6e372ce836f7dbdc2e75987 /lib/compiler_rt/cos.zig | |
| parent | c880644d929ff8e403494ff7e6e347b4857db263 (diff) | |
| download | zig-2e6e39a7004dae626ad3088cbf1e652f157e6db8.tar.gz zig-2e6e39a7004dae626ad3088cbf1e652f157e6db8.zip | |
x86_64: fix bugs and disable erroring tests
Diffstat (limited to 'lib/compiler_rt/cos.zig')
| -rw-r--r-- | lib/compiler_rt/cos.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler_rt/cos.zig b/lib/compiler_rt/cos.zig index d299e682d7..b3dbcc21f5 100644 --- a/lib/compiler_rt/cos.zig +++ b/lib/compiler_rt/cos.zig @@ -1,6 +1,4 @@ const std = @import("std"); -const builtin = @import("builtin"); -const arch = builtin.cpu.arch; const math = std.math; const expect = std.testing.expect; const common = @import("common.zig"); @@ -136,6 +134,8 @@ pub fn cosl(x: c_longdouble) callconv(.C) c_longdouble { } test "cos32" { + if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest; + const epsilon = 0.00001; try expect(math.approxEqAbs(f32, cosf(0.0), 1.0, epsilon)); |
