subxf3.zig (399B) - Raw
1 const std = @import("std"); 2 const common = @import("./common.zig"); 3 4 pub const panic = common.panic; 5 6 comptime { 7 @export(&__subxf3, .{ .name = "__subxf3", .linkage = common.linkage, .visibility = common.visibility }); 8 } 9 10 fn __subxf3(a: f80, b: f80) callconv(.c) f80 { 11 var b_rep = std.math.F80.fromFloat(b); 12 b_rep.exp ^= 0x8000; 13 const neg_b = b_rep.toFloat(); 14 return a + neg_b; 15 }