aboutsummaryrefslogtreecommitdiff
path: root/std/math/floor.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-25 04:48:58 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-08-25 04:48:58 -0400
commit815950996dcc92ac6ac285f2005dbac51b9cb6f8 (patch)
tree1f77690a5fb7ccbef75bcab9c8c1e008ef3c5068 /std/math/floor.zig
parent8aacfc846523aad142537b2bff49162d5feb6a91 (diff)
parentbf1f91595d4d3b5911632c671ef16e44d70dc9a6 (diff)
downloadzig-815950996dcc92ac6ac285f2005dbac51b9cb6f8.tar.gz
zig-815950996dcc92ac6ac285f2005dbac51b9cb6f8.zip
Merge remote-tracking branch 'origin/master' into macos-stack-traces
Diffstat (limited to 'std/math/floor.zig')
-rw-r--r--std/math/floor.zig2
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;
}