zig/lib/std/special/compiler_rt/fixunsdfsi.zig

17 lines
437 B
Zig

const fixuint = @import("fixuint.zig").fixuint;
const builtin = @import("builtin");
pub fn __fixunsdfsi(a: f64) callconv(.C) u32 {
@setRuntimeSafety(builtin.is_test);
return fixuint(f64, u32, a);
}
pub fn __aeabi_d2uiz(arg: f64) callconv(.AAPCS) u32 {
@setRuntimeSafety(false);
return @call(.{ .modifier = .always_inline }, __fixunsdfsi, .{arg});
}
test "import fixunsdfsi" {
_ = @import("fixunsdfsi_test.zig");
}