zig/lib/compiler_rt/divhf3.zig
Andrew Kelley 04c180c8e5 compiler_rt: partial cleanup
introduce `symbol` helper function and partially migrate to using it
2026-02-09 20:04:17 +01:00

11 lines
285 B
Zig

const symbol = @import("../compiler_rt.zig").symbol;
const divsf3 = @import("./divsf3.zig");
comptime {
symbol(&__divhf3, "__divhf3");
}
pub fn __divhf3(a: f16, b: f16) callconv(.c) f16 {
// TODO: more efficient implementation
return @floatCast(divsf3.__divsf3(a, b));
}