aboutsummaryrefslogtreecommitdiff
path: root/std/math/ln.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/ln.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/ln.zig')
-rw-r--r--std/math/ln.zig4
1 files changed, 0 insertions, 4 deletions
diff --git a/std/math/ln.zig b/std/math/ln.zig
index e78cc379e0..a560fee8ec 100644
--- a/std/math/ln.zig
+++ b/std/math/ln.zig
@@ -35,8 +35,6 @@ pub fn ln(x: var) @typeOf(x) {
}
pub fn ln_32(x_: f32) f32 {
- @setFloatMode(this, @import("builtin").FloatMode.Strict);
-
const ln2_hi: f32 = 6.9313812256e-01;
const ln2_lo: f32 = 9.0580006145e-06;
const Lg1: f32 = 0xaaaaaa.0p-24;
@@ -89,8 +87,6 @@ pub fn ln_32(x_: f32) f32 {
}
pub fn ln_64(x_: f64) f64 {
- @setFloatMode(this, @import("builtin").FloatMode.Strict);
-
const ln2_hi: f64 = 6.93147180369123816490e-01;
const ln2_lo: f64 = 1.90821492927058770002e-10;
const Lg1: f64 = 6.666666666666735130e-01;