zig/std/special/compiler_rt/udivmodti4.zig

14 lines
465 B
Zig
Raw Normal View History

2017-08-18 14:20:03 -07:00
const udivmod = @import("udivmod.zig").udivmod;
const builtin = @import("builtin");
const linkage = if (builtin.is_test) builtin.GlobalLinkage.Internal else builtin.GlobalLinkage.LinkOnce;
export fn __udivmodti4(a: u128, b: u128, maybe_rem: ?&u128) -> u128 {
@setDebugSafety(this, builtin.is_test);
@setGlobalLinkage(__udivmodti4, linkage);
2017-08-18 14:20:03 -07:00
return udivmod(u128, a, b, maybe_rem);
}
test "import udivmodti4" {
_ = @import("udivmodti4_test.zig");
}