zig/lib/compiler_rt/extendhfdf2.zig
Cody Tapscott 0d533433e2 compiler_rt: Add missing f16 functions
This change also exposes some of the existing functions under both the
PPC-style names symbols and the compiler-rt-style names, since Zig
currently lowers softfloat calls to the latter.
2022-10-13 12:53:20 -07:00

13 lines
329 B
Zig

const common = @import("./common.zig");
const extendf = @import("./extendf.zig").extendf;
pub const panic = common.panic;
comptime {
@export(__extendhfdf2, .{ .name = "__extendhfdf2", .linkage = common.linkage });
}
pub fn __extendhfdf2(a: common.F16T) callconv(.C) f64 {
return extendf(f64, f16, @bitCast(u16, a));
}