2018-04-29 03:03:07 +01:00
|
|
|
const udivmodti4 = @import("udivmodti4.zig");
|
2017-08-27 10:44:03 +01:00
|
|
|
const builtin = @import("builtin");
|
2019-03-02 21:46:04 +00:00
|
|
|
const compiler_rt = @import("../compiler_rt.zig");
|
2017-08-18 21:26:09 +01:00
|
|
|
|
2018-01-25 09:10:11 +00:00
|
|
|
pub extern fn __umodti3(a: u128, b: u128) u128 {
|
2018-01-25 06:46:12 +00:00
|
|
|
@setRuntimeSafety(builtin.is_test);
|
2017-08-18 21:26:09 +01:00
|
|
|
var r: u128 = undefined;
|
2018-04-29 03:03:07 +01:00
|
|
|
_ = udivmodti4.__udivmodti4(a, b, &r);
|
2017-08-18 21:26:09 +01:00
|
|
|
return r;
|
|
|
|
}
|
2018-04-29 03:03:07 +01:00
|
|
|
|
2019-04-10 23:47:14 +01:00
|
|
|
const v128 = @Vector(2, u64);
|
|
|
|
pub extern fn __umodti3_windows_x86_64(a: v128, b: v128) v128 {
|
|
|
|
return @bitCast(v128, @inlineCall(__umodti3, @bitCast(u128, a), @bitCast(u128, b)));
|
2018-04-29 03:03:07 +01:00
|
|
|
}
|