a71bfc249d
This removes the compiler_rt.setXmm0 hack. Instead, for the functions that use i128 or u128 in their parameter and return types, we use `@Vector(2, u64)` which generates the LLVM IR `<2 x i64>` type that matches what Clang generates for `typedef int ti_int __attribute__ ((mode (TI)))` when targeting Windows x86_64.
14 lines
422 B
Zig
14 lines
422 B
Zig
const udivmodti4 = @import("udivmodti4.zig");
|
|
const builtin = @import("builtin");
|
|
|
|
pub extern fn __udivti3(a: u128, b: u128) u128 {
|
|
@setRuntimeSafety(builtin.is_test);
|
|
return udivmodti4.__udivmodti4(a, b, null);
|
|
}
|
|
|
|
const v128 = @Vector(2, u64);
|
|
pub extern fn __udivti3_windows_x86_64(a: v128, b: v128) v128 {
|
|
@setRuntimeSafety(builtin.is_test);
|
|
return udivmodti4.__udivmodti4_windows_x86_64(a, b, null);
|
|
}
|