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
217 B
Zig
11 lines
217 B
Zig
const symbol = @import("../compiler_rt.zig").symbol;
|
|
const absv = @import("./absv.zig").absv;
|
|
|
|
comptime {
|
|
symbol(&__absvdi2, "__absvdi2");
|
|
}
|
|
|
|
pub fn __absvdi2(a: i64) callconv(.c) i64 {
|
|
return absv(i64, a);
|
|
}
|