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

pub const panic = common.panic;

comptime {
    @export(__truncxfsf2, .{ .name = "__truncxfsf2", .linkage = common.linkage });
}

fn __truncxfsf2(a: f80) callconv(.C) f32 {
    return trunc_f80(f32, a);
}