zig/lib/compiler_rt/extendsfxf2.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
266 B
Zig

const symbol = @import("../compiler_rt.zig").symbol;
const extend_f80 = @import("./extendf.zig").extend_f80;
comptime {
symbol(&__extendsfxf2, "__extendsfxf2");
}
fn __extendsfxf2(a: f32) callconv(.c) f80 {
return extend_f80(f32, @as(u32, @bitCast(a)));
}