diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-23 08:26:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-23 08:26:09 -0400 |
| commit | 327482c3a41a30d5ea63eedd3bfb13553c8c2d00 (patch) | |
| tree | ef668f8342632858ee20e6d9a05d9c93d8e5b704 /std/math/floor.zig | |
| parent | 68dcdf1c867a918aa0bb7b5c4cb42df185e1c8f9 (diff) | |
| parent | 353419f82d3575dc45631750a8cf08aa4826ec4c (diff) | |
| download | zig-327482c3a41a30d5ea63eedd3bfb13553c8c2d00.tar.gz zig-327482c3a41a30d5ea63eedd3bfb13553c8c2d00.zip | |
Merge pull request #1402 from ziglang/default-fp-ieee-strict
Default to strict IEEE floating point
Diffstat (limited to 'std/math/floor.zig')
| -rw-r--r-- | std/math/floor.zig | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/std/math/floor.zig b/std/math/floor.zig index 0858598eea..6ce462b10f 100644 --- a/std/math/floor.zig +++ b/std/math/floor.zig @@ -97,10 +97,8 @@ fn floor64(x: f64) f64 { } if (u >> 63 != 0) { - @setFloatMode(this, builtin.FloatMode.Strict); y = x - math.f64_toint + math.f64_toint - x; } else { - @setFloatMode(this, builtin.FloatMode.Strict); y = x + math.f64_toint - math.f64_toint - x; } |
