zig/lib/compiler_rt/truncxfsf2.zig
Andrew Kelley 04c180c8e5 compiler_rt: partial cleanup
introduce `symbol` helper function and partially migrate to using it
2026-02-09 20:04:17 +01:00

10 lines
239 B
Zig

const trunc_f80 = @import("./truncf.zig").trunc_f80;
const symbol = @import("../compiler_rt.zig").symbol;
comptime {
symbol(&__truncxfsf2, "__truncxfsf2");
}
fn __truncxfsf2(a: f80) callconv(.c) f32 {
return trunc_f80(f32, a);
}