aboutsummaryrefslogtreecommitdiff
path: root/std/math/exp2.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-08-23 08:26:09 -0400
committerGitHub <noreply@github.com>2018-08-23 08:26:09 -0400
commit327482c3a41a30d5ea63eedd3bfb13553c8c2d00 (patch)
treeef668f8342632858ee20e6d9a05d9c93d8e5b704 /std/math/exp2.zig
parent68dcdf1c867a918aa0bb7b5c4cb42df185e1c8f9 (diff)
parent353419f82d3575dc45631750a8cf08aa4826ec4c (diff)
downloadzig-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/exp2.zig')
-rw-r--r--std/math/exp2.zig4
1 files changed, 0 insertions, 4 deletions
diff --git a/std/math/exp2.zig b/std/math/exp2.zig
index d590b0b60b..3d8e5d692e 100644
--- a/std/math/exp2.zig
+++ b/std/math/exp2.zig
@@ -36,8 +36,6 @@ const exp2ft = []const f64{
};
fn exp2_32(x: f32) f32 {
- @setFloatMode(this, @import("builtin").FloatMode.Strict);
-
const tblsiz = @intCast(u32, exp2ft.len);
const redux: f32 = 0x1.8p23 / @intToFloat(f32, tblsiz);
const P1: f32 = 0x1.62e430p-1;
@@ -353,8 +351,6 @@ const exp2dt = []f64{
};
fn exp2_64(x: f64) f64 {
- @setFloatMode(this, @import("builtin").FloatMode.Strict);
-
const tblsiz = @intCast(u32, exp2dt.len / 2);
const redux: f64 = 0x1.8p52 / @intToFloat(f64, tblsiz);
const P1: f64 = 0x1.62e42fefa39efp-1;