zig

fork of https://codeberg.org/ziglang/zig
Log | Tree | Refs | README | LICENSE

commit 5aff641f4b93c52db3ec29bad5bfbcc738ad58c3 (tree)
parent 994f4da8d4e0ef48ad03688afdaa8da00a88b0bd
Author: Marc Tiehuis <marctiehuis@gmail.com>
Date:   Wed, 21 Jun 2017 23:23:48 +1200

Fix pow tests

See #393.

Diffstat:
Mstd/math/ln.zig | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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;