From 353419f82d3575dc45631750a8cf08aa4826ec4c Mon Sep 17 00:00:00 2001 From: Marc Tiehuis Date: Thu, 23 Aug 2018 21:42:09 +1200 Subject: Default to strict IEEE floating point Closes #1227. --- std/math/complex/exp.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'std/math/complex') diff --git a/std/math/complex/exp.zig b/std/math/complex/exp.zig index 48fb132d97..e696ee42b4 100644 --- a/std/math/complex/exp.zig +++ b/std/math/complex/exp.zig @@ -17,8 +17,6 @@ pub fn exp(z: var) @typeOf(z) { } fn exp32(z: Complex(f32)) Complex(f32) { - @setFloatMode(this, @import("builtin").FloatMode.Strict); - const exp_overflow = 0x42b17218; // max_exp * ln2 ~= 88.72283955 const cexp_overflow = 0x43400074; // (max_exp - min_denom_exp) * ln2 -- cgit v1.2.3