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
331 B
Zig
13 lines
331 B
Zig
const mulc3 = @import("./mulc3.zig");
|
|
const symbol = @import("../compiler_rt.zig").symbol;
|
|
|
|
comptime {
|
|
if (@import("builtin").zig_backend != .stage2_c) {
|
|
symbol(&__muldc3, "__muldc3");
|
|
}
|
|
}
|
|
|
|
pub fn __muldc3(a: f64, b: f64, c: f64, d: f64) callconv(.c) mulc3.Complex(f64) {
|
|
return mulc3.mulc3(f64, a, b, c, d);
|
|
}
|