truncxfhf2.zig (356B) - Raw
1 const common = @import("./common.zig"); 2 const trunc_f80 = @import("./truncf.zig").trunc_f80; 3 4 pub const panic = common.panic; 5 6 comptime { 7 @export(&__truncxfhf2, .{ .name = "__truncxfhf2", .linkage = common.linkage, .visibility = common.visibility }); 8 } 9 10 fn __truncxfhf2(a: f80) callconv(.c) common.F16T(f80) { 11 return @bitCast(trunc_f80(f16, a)); 12 }