mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
04c180c8e5
introduce `symbol` helper function and partially migrate to using it
11 lines
253 B
Zig
11 lines
253 B
Zig
const symbol = @import("../compiler_rt.zig").symbol;
|
|
const floatFromInt = @import("./float_from_int.zig").floatFromInt;
|
|
|
|
comptime {
|
|
symbol(&__floatdixf, "__floatdixf");
|
|
}
|
|
|
|
fn __floatdixf(a: i64) callconv(.c) f80 {
|
|
return floatFromInt(f80, a);
|
|
}
|