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
13 lines
281 B
Zig
13 lines
281 B
Zig
const common = @import("./common.zig");
|
|
const symbol = @import("../compiler_rt.zig").symbol;
|
|
|
|
comptime {
|
|
if (common.want_ppc_abi)
|
|
symbol(&__negtf2, "__negkf2");
|
|
symbol(&__negtf2, "__negtf2");
|
|
}
|
|
|
|
fn __negtf2(a: f128) callconv(.c) f128 {
|
|
return common.fneg(a);
|
|
}
|