floatsihf.zig (347B) - Raw
1 const common = @import("./common.zig"); 2 const floatFromInt = @import("./float_from_int.zig").floatFromInt; 3 4 pub const panic = common.panic; 5 6 comptime { 7 @export(&__floatsihf, .{ .name = "__floatsihf", .linkage = common.linkage, .visibility = common.visibility }); 8 } 9 10 fn __floatsihf(a: i32) callconv(.c) f16 { 11 return floatFromInt(f16, a); 12 }