2017-08-16 16:07:35 -07:00
|
|
|
const fixuint = @import("fixuint.zig").fixuint;
|
2017-10-01 21:10:42 -07:00
|
|
|
const builtin = @import("builtin");
|
2017-08-16 16:07:35 -07:00
|
|
|
|
2020-01-06 12:34:50 -08:00
|
|
|
pub fn __fixunsdfdi(a: f64) callconv(.C) u64 {
|
2018-01-24 22:46:12 -08:00
|
|
|
@setRuntimeSafety(builtin.is_test);
|
2017-08-16 16:07:35 -07:00
|
|
|
return fixuint(f64, u64, a);
|
|
|
|
}
|
|
|
|
|
2020-01-07 08:44:20 -08:00
|
|
|
pub fn __aeabi_d2ulz(a: f64) callconv(.AAPCS) u64 {
|
|
|
|
@setRuntimeSafety(false);
|
|
|
|
return @call(.{ .modifier = .always_inline }, __fixunsdfdi, .{a});
|
|
|
|
}
|
|
|
|
|
2017-08-16 16:07:35 -07:00
|
|
|
test "import fixunsdfdi" {
|
|
|
|
_ = @import("fixunsdfdi_test.zig");
|
|
|
|
}
|