zig/std/special/compiler_rt/fixunssfdi.zig

14 lines
425 B
Zig

const fixuint = @import("fixuint.zig").fixuint;
const builtin = @import("builtin");
const linkage = if (builtin.is_test) builtin.GlobalLinkage.Internal else builtin.GlobalLinkage.LinkOnce;
export fn __fixunssfdi(a: f32) -> u64 {
@setDebugSafety(this, builtin.is_test);
@setGlobalLinkage(__fixunssfdi, linkage);
return fixuint(f32, u64, a);
}
test "import fixunssfdi" {
_ = @import("fixunssfdi_test.zig");
}