| author | |
| committer | |
| log | 6ad9ac59e7461fa6bd906f7c4feb662509082c17 |
| tree | f8169d473a9191a9f38ae6e4ea9dea09e7b73c2b |
| parent | 497f8a60986eac6c5abd3230b34b975bd1701c53 |
1 files changed, 1 insertions(+), 1 deletions(-)
lib/std/math/float.zig+1-1| ... | ... | @@ -4,7 +4,7 @@ const expect = std.testing.expect; |
| 4 | 4 | |
| 5 | 5 | /// Creates a raw "1.0" mantissa for floating point type T. Used to dedupe f80 logic. |
| 6 | 6 | fn mantissaOne(comptime T: type) comptime_int { |
| 7 | return if (T == f80) 1 << floatFractionalBits(T) else 0; | |
| 7 | return if (@typeInfo(T).Float.bits == 80) 1 << floatFractionalBits(T) else 0; | |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | 10 | /// Creates floating point type T from an unbiased exponent and raw mantissa. |