mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 06:44:50 +01:00
10 lines
308 B
Zig
10 lines
308 B
Zig
const common = @import("./common.zig");
|
|
const intFromFloat = @import("./int_from_float.zig").intFromFloat;
|
|
|
|
comptime {
|
|
@export(&__fixhfdi, .{ .name = "__fixhfdi", .linkage = common.linkage, .visibility = common.visibility });
|
|
}
|
|
|
|
fn __fixhfdi(a: f16) callconv(.c) i64 {
|
|
return intFromFloat(i64, a);
|
|
}
|