aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/extendhfdf2.zig
blob: 7b1a7929f7edf4a578876f3573befe42f43bafcb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
const common = @import("./common.zig");
const extendf = @import("./extendf.zig").extendf;

pub const panic = common.panic;

comptime {
    @export(&__extendhfdf2, .{ .name = "__extendhfdf2", .linkage = common.linkage, .visibility = common.visibility });
}

pub fn __extendhfdf2(a: common.F16T(f64)) callconv(.c) f64 {
    return extendf(f64, f16, @as(u16, @bitCast(a)));
}