aboutsummaryrefslogtreecommitdiff
path: root/std/math/expm1.zig
diff options
context:
space:
mode:
authorMarc Tiehuis <marctiehuis@gmail.com>2017-06-21 18:21:11 +1200
committerMarc Tiehuis <marctiehuis@gmail.com>2017-06-21 18:21:11 +1200
commit14a324a0fa8d60dbf7d6948a992a09d8a65cbdc4 (patch)
tree2ddb5dd971975ed0726e7946f92426f6d5d7b171 /std/math/expm1.zig
parentdfa2d11167db31e3b490c7d37633871fef4f2d52 (diff)
downloadzig-14a324a0fa8d60dbf7d6948a992a09d8a65cbdc4.tar.gz
zig-14a324a0fa8d60dbf7d6948a992a09d8a65cbdc4.zip
Fixes for release mode tests
Diffstat (limited to 'std/math/expm1.zig')
-rw-r--r--std/math/expm1.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/math/expm1.zig b/std/math/expm1.zig
index 327bf27bcd..7ffc14b951 100644
--- a/std/math/expm1.zig
+++ b/std/math/expm1.zig
@@ -258,7 +258,7 @@ fn expm1_64(x_: f64) -> f64 {
if (k < 0 or k > 56) {
var y = x - e + 1.0;
if (k == 1024) {
- y = y * 2.0; // TODO: * 0x1.0p1023;
+ y = y * 2.0 * 0x1.0p1022 * 10;
} else {
y = y * twopk;
}