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