mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
13 lines
310 B
Zig
13 lines
310 B
Zig
|
const common = @import("./common.zig");
|
||
|
const floatToInt = @import("./float_to_int.zig").floatToInt;
|
||
|
|
||
|
pub const panic = common.panic;
|
||
|
|
||
|
comptime {
|
||
|
@export(__fixunsdfti, .{ .name = "__fixunsdfti", .linkage = common.linkage });
|
||
|
}
|
||
|
|
||
|
fn __fixunsdfti(a: f64) callconv(.C) u128 {
|
||
|
return floatToInt(u128, a);
|
||
|
}
|