zig/lib/std/special/compiler_rt/fixsfdi.zig
Andrew Kelley ed36dbbd9c
mv std/ lib/
that's all this commit does. further commits will fix cli flags and
such.

see #2221
2019-09-25 23:35:41 -04:00

12 lines
258 B
Zig

const fixint = @import("fixint.zig").fixint;
const builtin = @import("builtin");
pub extern fn __fixsfdi(a: f32) i64 {
@setRuntimeSafety(builtin.is_test);
return fixint(f32, i64, a);
}
test "import fixsfdi" {
_ = @import("fixsfdi_test.zig");
}