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