mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-26 13:01:34 +03:00
04c180c8e5
introduce `symbol` helper function and partially migrate to using it
11 lines
239 B
Zig
11 lines
239 B
Zig
const symbol = @import("../compiler_rt.zig").symbol;
|
|
const trunc_f80 = @import("./truncf.zig").trunc_f80;
|
|
|
|
comptime {
|
|
symbol(&__truncxfdf2, "__truncxfdf2");
|
|
}
|
|
|
|
fn __truncxfdf2(a: f80) callconv(.c) f64 {
|
|
return trunc_f80(f64, a);
|
|
}
|