fixunshfdi.zig (350B) - Raw
1 const common = @import("./common.zig"); 2 const intFromFloat = @import("./int_from_float.zig").intFromFloat; 3 4 pub const panic = common.panic; 5 6 comptime { 7 @export(&__fixunshfdi, .{ .name = "__fixunshfdi", .linkage = common.linkage, .visibility = common.visibility }); 8 } 9 10 fn __fixunshfdi(a: f16) callconv(.c) u64 { 11 return intFromFloat(u64, a); 12 }