zig/lib/compiler_rt/floatdihf.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
253 B
Zig

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