zig/lib/compiler_rt/floatunsihf.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

10 lines
263 B
Zig

const symbol = @import("../compiler_rt.zig").symbol;
const floatFromInt = @import("./float_from_int.zig").floatFromInt;
comptime {
symbol(&__floatunsihf, "__floatunsihf");
}
pub fn __floatunsihf(a: u32) callconv(.c) f16 {
return floatFromInt(f16, a);
}