Files
WrldBox/.tmp_zig/lib/zig/compiler_rt/subxf3.zig
swim67667 c17dfc94ce
Some checks failed
Build Project / build (ubuntu-latest) (push) Failing after 12m33s
added multi-compiling stuff (only works on my mac for now)
2026-06-28 16:40:20 -04:00

14 lines
305 B
Zig

const std = @import("std");
const symbol = @import("../compiler_rt.zig").symbol;
comptime {
symbol(&__subxf3, "__subxf3");
}
fn __subxf3(a: f80, b: f80) callconv(.c) f80 {
var b_rep = std.math.F80.fromFloat(b);
b_rep.exp ^= 0x8000;
const neg_b = b_rep.toFloat();
return a + neg_b;
}