mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 14:53:08 +00:00
We already have a LICENSE file that covers the Zig Standard Library. We no longer need to remind everyone that the license is MIT in every single file. Previously this was introduced to clarify the situation for a fork of Zig that made Zig's LICENSE file harder to find, and replaced it with their own license that required annual payments to their company. However that fork now appears to be dead. So there is no need to reinforce the copyright notice in every single file.
19 lines
581 B
Zig
19 lines
581 B
Zig
const udivmodti4 = @import("udivmodti4.zig");
|
|
const builtin = @import("builtin");
|
|
const compiler_rt = @import("../compiler_rt.zig");
|
|
|
|
pub fn __umodti3(a: u128, b: u128) callconv(.C) u128 {
|
|
@setRuntimeSafety(builtin.is_test);
|
|
var r: u128 = undefined;
|
|
_ = udivmodti4.__udivmodti4(a, b, &r);
|
|
return r;
|
|
}
|
|
|
|
const v128 = @import("std").meta.Vector(2, u64);
|
|
pub fn __umodti3_windows_x86_64(a: v128, b: v128) callconv(.C) v128 {
|
|
return @bitCast(v128, @call(.{ .modifier = .always_inline }, __umodti3, .{
|
|
@bitCast(u128, a),
|
|
@bitCast(u128, b),
|
|
}));
|
|
}
|