mirror of
https://github.com/ziglang/zig.git
synced 2024-12-04 02:48:50 +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(__fixunssfti, .{ .name = "__fixunssfti", .linkage = common.linkage });
|
||
|
}
|
||
|
|
||
|
fn __fixunssfti(a: f32) callconv(.C) u128 {
|
||
|
return floatToInt(u128, a);
|
||
|
}
|