mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 10:24:47 +01:00
10 lines
326 B
Zig
10 lines
326 B
Zig
const common = @import("./common.zig");
|
|
const truncf = @import("./truncf.zig").truncf;
|
|
|
|
comptime {
|
|
@export(&__trunctfhf2, .{ .name = "__trunctfhf2", .linkage = common.linkage, .visibility = common.visibility });
|
|
}
|
|
|
|
pub fn __trunctfhf2(a: f128) callconv(.c) common.F16T(f128) {
|
|
return @bitCast(truncf(f16, f128, a));
|
|
}
|