aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/cos.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-10-22 12:16:35 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-10-22 12:16:35 -0700
commit6f0198cadbe29294f2bf3153a27beebd64377566 (patch)
tree99e6a8657282d9ffe09944a52c78b7e5b6949071 /lib/compiler_rt/cos.zig
parent9f0359d78f9facc38418e32b0e8c1bf6f99f0d26 (diff)
downloadzig-6f0198cadbe29294f2bf3153a27beebd64377566.tar.gz
zig-6f0198cadbe29294f2bf3153a27beebd64377566.zip
Revert "Merge pull request #17637 from jacobly0/x86_64-test-std"
This reverts commit 0c99ba1eab63865592bb084feb271cd4e4b0357e, reversing changes made to 5f92b070bf284f1493b1b5d433dd3adde2f46727. This caused a CI failure when it landed in master branch due to a 128-bit `@byteSwap` in std.mem.
Diffstat (limited to 'lib/compiler_rt/cos.zig')
-rw-r--r--lib/compiler_rt/cos.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler_rt/cos.zig b/lib/compiler_rt/cos.zig
index b3dbcc21f5..d299e682d7 100644
--- a/lib/compiler_rt/cos.zig
+++ b/lib/compiler_rt/cos.zig
@@ -1,4 +1,6 @@
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");
@@ -134,8 +136,6 @@ 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));