diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-08-22 14:32:31 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-22 14:32:31 +0300 |
| commit | 8667d6d61e8217159377c0e22bc35075848d1202 (patch) | |
| tree | 4dd89f89f346d2a1f435efff54cd27d33485f2c5 /lib/std/math/float.zig | |
| parent | f1999712b0a8560bd84726c8a5e8fd37dbdf5375 (diff) | |
| parent | 5404dcdfd844e4b9f47dc49a1f43f0e1075a563f (diff) | |
| download | zig-8667d6d61e8217159377c0e22bc35075848d1202.tar.gz zig-8667d6d61e8217159377c0e22bc35075848d1202.zip | |
Merge pull request #12563 from Vexu/stage2-fixes
Stage2 fixes
Diffstat (limited to 'lib/std/math/float.zig')
| -rw-r--r-- | lib/std/math/float.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/math/float.zig b/lib/std/math/float.zig index 30e456fcbd..768cc03285 100644 --- a/lib/std/math/float.zig +++ b/lib/std/math/float.zig @@ -8,7 +8,7 @@ inline fn mantissaOne(comptime T: type) comptime_int { } /// Creates floating point type T from an unbiased exponent and raw mantissa. -inline fn reconstructFloat(comptime T: type, exponent: comptime_int, mantissa: comptime_int) T { +inline fn reconstructFloat(comptime T: type, comptime exponent: comptime_int, comptime mantissa: comptime_int) T { const TBits = @Type(.{ .Int = .{ .signedness = .unsigned, .bits = @bitSizeOf(T) } }); const biased_exponent = @as(TBits, exponent + floatExponentMax(T)); return @bitCast(T, (biased_exponent << floatMantissaBits(T)) | @as(TBits, mantissa)); |
