aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/math/ln.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/std/math/ln.zig b/std/math/ln.zig
index 85335ba33f..4d6d7216f0 100644
--- a/std/math/ln.zig
+++ b/std/math/ln.zig
@@ -20,6 +20,8 @@ pub fn ln_workaround(x: var) -> @typeOf(x) {
}
fn lnf(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;