| ... | @@ -339,7 +339,7 @@ pub fn __addxf3(a: f80, b: f80) callconv(.C) f80 { | ... | @@ -339,7 +339,7 @@ pub fn __addxf3(a: f80, b: f80) callconv(.C) f80 { |
| 339 | // If partial cancellation occurred, we need to left-shift the result | 339 | // If partial cancellation occurred, we need to left-shift the result |
| 340 | // and adjust the exponent: | 340 | // and adjust the exponent: |
| 341 | if (a_int < int_bit << 3) { | 341 | if (a_int < int_bit << 3) { |
| 342 | const shift = @intCast(i32, @clz(u80, a_int)) - @intCast(i32, @clz(u80, int_bit << 3)); | 342 | const shift = @intCast(i32, @clz(u80, a_int)) - @intCast(i32, @clz(u80, @as(u80, int_bit) << 3)); |
| 343 | a_int <<= @intCast(u7, shift); | 343 | a_int <<= @intCast(u7, shift); |
| 344 | a_exp -= shift; | 344 | a_exp -= shift; |
| 345 | } | 345 | } |