diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-06-26 14:41:47 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-07-08 17:59:10 -0400 |
| commit | d1e68c3ca84844a96d4897c857861b40751965cc (patch) | |
| tree | 8866451296719e1c1c0850bb31a213d081c22352 /std/math/log2.zig | |
| parent | 3e8af78895d313f0706389da2ad7e5c60df95964 (diff) | |
| download | zig-d1e68c3ca84844a96d4897c857861b40751965cc.tar.gz zig-d1e68c3ca84844a96d4897c857861b40751965cc.zip | |
better bigint/bigfloat implementation
Diffstat (limited to 'std/math/log2.zig')
| -rw-r--r-- | std/math/log2.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/math/log2.zig b/std/math/log2.zig index c136c7166c..eade3d28a7 100644 --- a/std/math/log2.zig +++ b/std/math/log2.zig @@ -133,7 +133,7 @@ fn log2_64(x_: f64) -> f64 { // hi + lo = f - hfsq + s * (hfsq + R) ~ log(1 + f) var hi = f - hfsq; var hii = @bitCast(u64, hi); - hii &= @maxValue(u64) << 32; + hii &= u64(@maxValue(u64)) <<% 32; hi = @bitCast(f64, hii); const lo = f - hi - hfsq + s * (hfsq + R); |
