blob: cc42eb927022cc80d83575b439dbc338a6809faa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const common = @import("./common.zig");
const addf3 = @import("./addf3.zig").addf3;
pub const panic = common.panic;
comptime {
@export(&__subhf3, .{ .name = "__subhf3", .linkage = common.linkage, .visibility = common.visibility });
}
fn __subhf3(a: f16, b: f16) callconv(.c) f16 {
const neg_b = @as(f16, @bitCast(@as(u16, @bitCast(b)) ^ (@as(u16, 1) << 15)));
return addf3(f16, a, neg_b);
}
|