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

pub const panic = common.panic;

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

pub fn __extenddfxf2(a: f64) callconv(.c) f80 {
    return extend_f80(f64, @as(u64, @bitCast(a)));
}