mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
12 lines
305 B
Zig
12 lines
305 B
Zig
const common = @import("./common.zig");
|
|
const floatToInt = @import("./float_to_int.zig").floatToInt;
|
|
|
|
pub const panic = common.panic;
|
|
|
|
comptime {
|
|
@export(__fixdfti, .{ .name = "__fixdfti", .linkage = common.linkage });
|
|
}
|
|
|
|
pub fn __fixdfti(a: f64) callconv(.C) i128 {
|
|
return floatToInt(i128, a);
|
|
}
|