1 2 3 4 5 6 7 8 9 10 11 12
const common = @import("./common.zig"); const floatToInt = @import("./float_to_int.zig").floatToInt; pub const panic = common.panic; comptime { @export(__fixunshfdi, .{ .name = "__fixunshfdi", .linkage = common.linkage }); } fn __fixunshfdi(a: f16) callconv(.C) u64 { return floatToInt(u64, a); }