mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 08:24:49 +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(&__fixhfsi, .{ .name = "__fixhfsi", .linkage = common.linkage, .visibility = common.visibility });
|
|
}
|
|
|
|
fn __fixhfsi(a: f16) callconv(.c) i32 {
|
|
return intFromFloat(i32, a);
|
|
}
|