mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
04c180c8e5
introduce `symbol` helper function and partially migrate to using it
12 lines
305 B
Zig
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));
|
|
}
|