Files
zig/lib/compiler_rt/trunctfhf2.zig
T
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

12 lines
305 B
Zig

const common = @import("./common.zig");
const symbol = @import("../compiler_rt.zig").symbol;
const truncf = @import("./truncf.zig").truncf;
comptime {
symbol(&__trunctfhf2, "__trunctfhf2");
}
pub fn __trunctfhf2(a: f128) callconv(.c) common.F16T(f128) {
return @bitCast(truncf(f16, f128, a));
}