zig/lib/std/special/compiler_rt/fixdfdi.zig
2020-01-06 15:34:50 -05:00

12 lines
264 B
Zig

const fixint = @import("fixint.zig").fixint;
const builtin = @import("builtin");
pub fn __fixdfdi(a: f64) callconv(.C) i64 {
@setRuntimeSafety(builtin.is_test);
return fixint(f64, i64, a);
}
test "import fixdfdi" {
_ = @import("fixdfdi_test.zig");
}