mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
Fix copy-paste error that results in incorrect results from exp64()
This commit is contained in:
parent
5d2a77cd9a
commit
dfd604834b
@ -146,7 +146,7 @@ fn exp64(x_: f64) f64 {
|
||||
var lo: f64 = undefined;
|
||||
|
||||
// |x| > 0.5 * ln2
|
||||
if (hx > 0x3EB17218) {
|
||||
if (hx > 0x3FD62E42) {
|
||||
// |x| >= 1.5 * ln2
|
||||
if (hx > 0x3FF0A2B2) {
|
||||
k = @floatToInt(i32, invln2 * x + half[@intCast(usize, sign)]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user