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
266 B
Zig
11 lines
266 B
Zig
const symbol = @import("../compiler_rt.zig").symbol;
|
|
const extend_f80 = @import("./extendf.zig").extend_f80;
|
|
|
|
comptime {
|
|
symbol(&__extendsfxf2, "__extendsfxf2");
|
|
}
|
|
|
|
fn __extendsfxf2(a: f32) callconv(.c) f80 {
|
|
return extend_f80(f32, @as(u32, @bitCast(a)));
|
|
}
|