mirror of
https://github.com/ziglang/zig.git
synced 2025-02-10 22:50:18 +00:00
Fix scalbn constant multiplier
This commit is contained in:
parent
14a324a0fa
commit
994f4da8d4
@ -48,10 +48,10 @@ fn scalbn64(x: f64, n_: i32) -> f64 {
|
||||
var n = n_;
|
||||
|
||||
if (n > 1023) {
|
||||
y *= 0x1.0p1022 * 10.0;
|
||||
y *= 0x1.0p1022 * 2.0;
|
||||
n -= 1023;
|
||||
if (n > 1023) {
|
||||
y *= 0x1.0p1022 * 10.0;
|
||||
y *= 0x1.0p1022 * 2.0;
|
||||
n -= 1023;
|
||||
if (n > 1023) {
|
||||
n = 1023;
|
||||
|
Loading…
Reference in New Issue
Block a user