aboutsummaryrefslogtreecommitdiff
path: root/lib/compiler_rt/gexf2.zig
blob: 6bb88fbb8f4ef7fa2b610b8628cb8a5a55dd9353 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
const common = @import("./common.zig");
const comparef = @import("./comparef.zig");

pub const panic = common.panic;

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

fn __gexf2(a: f80, b: f80) callconv(.C) i32 {
    return @enumToInt(comparef.cmp_f80(comparef.GE, a, b));
}

fn __gtxf2(a: f80, b: f80) callconv(.C) i32 {
    return __gexf2(a, b);
}