Files
zig/lib/compiler_rt/extendhfdf2.zig
T
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

12 lines
319 B
Zig

const common = @import("./common.zig");
const symbol = @import("../compiler_rt.zig").symbol;
const extendf = @import("./extendf.zig").extendf;
comptime {
symbol(&__extendhfdf2, "__extendhfdf2");
}
pub fn __extendhfdf2(a: common.F16T(f64)) callconv(.c) f64 {
return extendf(f64, f16, @as(u16, @bitCast(a)));
}