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