| ... | ... | @@ -1,4 +1,3 @@ |
| 1 | | const udivmod = @import("udivmod.zig").udivmod; |
| 2 | 1 | const builtin = @import("builtin"); |
| 3 | 2 | const compiler_rt = @import("../compiler_rt.zig"); |
| 4 | 3 | |
| ... | ... | @@ -33,11 +32,11 @@ pub extern fn __muloti4(a: i128, b: i128, overflow: *c_int) i128 { |
| 33 | 32 | } |
| 34 | 33 | |
| 35 | 34 | if (sa == sb) { |
| 36 | | if (abs_a > @divFloor(max, abs_b)) { |
| 35 | if (abs_a > @divTrunc(max, abs_b)) { |
| 37 | 36 | overflow.* = 1; |
| 38 | 37 | } |
| 39 | 38 | } else { |
| 40 | | if (abs_a > @divFloor(min, -abs_b)) { |
| 39 | if (abs_a > @divTrunc(min, -abs_b)) { |
| 41 | 40 | overflow.* = 1; |
| 42 | 41 | } |
| 43 | 42 | } |