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
12 lines
319 B
Zig
12 lines
319 B
Zig
const common = @import("./common.zig");
|
|
const symbol = @import("../compiler_rt.zig").symbol;
|
|
const extendf = @import("./extendf.zig").extendf;
|
|
|
|
comptime {
|
|
symbol(&__extendhfdf2, "__extendhfdf2");
|
|
}
|
|
|
|
pub fn __extendhfdf2(a: common.F16T(f64)) callconv(.c) f64 {
|
|
return extendf(f64, f16, @as(u16, @bitCast(a)));
|
|
}
|