aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/extendsfxf2.zig
blob: b883034d4eb2477d10e05432d4d51e652a544b81 (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(&__extendsfxf2, .{ .name = "__extendsfxf2", .linkage = common.linkage, .visibility = common.visibility });
}

fn __extendsfxf2(a: f32) callconv(.c) f80 {
    return extend_f80(f32, @as(u32, @bitCast(a)));
}