aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-04-10 16:29:10 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-04-10 16:29:10 -0400
commit52934851f2b7a5cb28a08beafa1ec1aa24a3a4cb (patch)
tree01152f14d06a9f6c0e25c585ffdb4837041059fb /std
parentaff2e47821aaad5cac74ed8a3cac2e72283b594b (diff)
downloadzig-52934851f2b7a5cb28a08beafa1ec1aa24a3a4cb.tar.gz
zig-52934851f2b7a5cb28a08beafa1ec1aa24a3a4cb.zip
compiler_rt: `@divTrunc` rather than `@divFloor` in muloti4
Diffstat (limited to 'std')
-rw-r--r--std/special/compiler_rt/muloti4.zig5
1 files changed, 2 insertions, 3 deletions
diff --git a/std/special/compiler_rt/muloti4.zig b/std/special/compiler_rt/muloti4.zig
index fd6855072b..f5820fa37d 100644
--- a/std/special/compiler_rt/muloti4.zig
+++ b/std/special/compiler_rt/muloti4.zig
@@ -1,4 +1,3 @@
-const udivmod = @import("udivmod.zig").udivmod;
const builtin = @import("builtin");
const compiler_rt = @import("../compiler_rt.zig");
@@ -33,11 +32,11 @@ pub extern fn __muloti4(a: i128, b: i128, overflow: *c_int) i128 {
}
if (sa == sb) {
- if (abs_a > @divFloor(max, abs_b)) {
+ if (abs_a > @divTrunc(max, abs_b)) {
overflow.* = 1;
}
} else {
- if (abs_a > @divFloor(min, -abs_b)) {
+ if (abs_a > @divTrunc(min, -abs_b)) {
overflow.* = 1;
}
}