diff options
| author | Marc Tiehuis <marctiehuis@gmail.com> | 2017-06-18 14:16:04 +1200 |
|---|---|---|
| committer | Marc Tiehuis <marctiehuis@gmail.com> | 2017-06-18 14:16:04 +1200 |
| commit | 4efb9ae2e5525bc807b626c83b8e83cf8d730994 (patch) | |
| tree | f3a1d9a36018902023850540a3fae4f16b6f1ba2 /std/math/tan.zig | |
| parent | 62323eeb75b94829f0941cf97067780f0999573f (diff) | |
| download | zig-4efb9ae2e5525bc807b626c83b8e83cf8d730994.tar.gz zig-4efb9ae2e5525bc807b626c83b8e83cf8d730994.zip | |
Get tests passing under release mode
This does not fix the underlying issue in pow at this stage, but we may
be able to narrow down the cause after adding tests for specific edge
cases in functions.
Diffstat (limited to 'std/math/tan.zig')
| -rw-r--r-- | std/math/tan.zig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/std/math/tan.zig b/std/math/tan.zig index a8e907a59d..6c86f9b38d 100644 --- a/std/math/tan.zig +++ b/std/math/tan.zig @@ -23,6 +23,8 @@ const Tq4 = -5.38695755929454629881E7; // // This may have slight differences on some edge cases and may need to replaced if so. fn tan32(x_: f32) -> f32 { + @setFloatMode(this, @import("builtin").FloatMode.Strict); + const pi4a = 7.85398125648498535156e-1; const pi4b = 3.77489470793079817668E-8; const pi4c = 2.69515142907905952645E-15; |
