zig/lib/compiler_rt/floattitf.zig
2022-06-17 16:38:59 -07:00

13 lines
312 B
Zig

const common = @import("./common.zig");
const intToFloat = @import("./int_to_float.zig").intToFloat;
pub const panic = common.panic;
comptime {
@export(__floattitf, .{ .name = "__floattitf", .linkage = common.linkage });
}
pub fn __floattitf(a: i128) callconv(.C) f128 {
return intToFloat(f128, a);
}