| ... | @@ -7,7 +7,7 @@ const builtin = @import("builtin"); | ... | @@ -7,7 +7,7 @@ const builtin = @import("builtin"); |
| 7 | const is_test = builtin.is_test; | 7 | const is_test = builtin.is_test; |
| 8 | const std = @import("std"); | 8 | const std = @import("std"); |
| 9 | | 9 | |
| 10 | pub fn __floatunsitf(a: u64) callconv(.C) f128 { | 10 | pub fn __floatunsitf(a: u32) callconv(.C) f128 { |
| 11 | @setRuntimeSafety(is_test); | 11 | @setRuntimeSafety(is_test); |
| 12 | | 12 | |
| 13 | if (a == 0) { | 13 | if (a == 0) { |
| ... | @@ -19,7 +19,7 @@ pub fn __floatunsitf(a: u64) callconv(.C) f128 { | ... | @@ -19,7 +19,7 @@ pub fn __floatunsitf(a: u64) callconv(.C) f128 { |
| 19 | const exponent_bias = (1 << (exponent_bits - 1)) - 1; | 19 | const exponent_bias = (1 << (exponent_bits - 1)) - 1; |
| 20 | const implicit_bit = 1 << mantissa_bits; | 20 | const implicit_bit = 1 << mantissa_bits; |
| 21 | | 21 | |
| 22 | const exp = (64 - 1) - @clz(u64, a); | 22 | const exp = (32 - 1) - @clz(u32, a); |
| 23 | const shift = mantissa_bits - @intCast(u7, exp); | 23 | const shift = mantissa_bits - @intCast(u7, exp); |
| 24 | | 24 | |
| 25 | // TODO(#1148): @bitCast alignment error | 25 | // TODO(#1148): @bitCast alignment error |