mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 14:53:08 +00:00
Tests with no names are executed when using `zig test` regardless of the `--test-filter` used. Non-named tests should be used when simply importing unit tests from another file. This allows `zig test` to find all the appropriate tests, even when using `--test-filter`.
19 lines
623 B
Zig
19 lines
623 B
Zig
const udivmod = @import("udivmod.zig").udivmod;
|
|
const builtin = @import("builtin");
|
|
const compiler_rt = @import("../compiler_rt.zig");
|
|
|
|
pub fn __udivmodti4(a: u128, b: u128, maybe_rem: ?*u128) callconv(.C) u128 {
|
|
@setRuntimeSafety(builtin.is_test);
|
|
return udivmod(u128, a, b, maybe_rem);
|
|
}
|
|
|
|
const v128 = @import("std").meta.Vector(2, u64);
|
|
pub fn __udivmodti4_windows_x86_64(a: v128, b: v128, maybe_rem: ?*u128) callconv(.C) v128 {
|
|
@setRuntimeSafety(builtin.is_test);
|
|
return @bitCast(v128, udivmod(u128, @bitCast(u128, a), @bitCast(u128, b), maybe_rem));
|
|
}
|
|
|
|
test {
|
|
_ = @import("udivmodti4_test.zig");
|
|
}
|