Files
zig/lib/compiler_rt/muldf3.zig
T
Andrew Kelley 04c180c8e5 compiler_rt: partial cleanup
introduce `symbol` helper function and partially migrate to using it
2026-02-09 20:04:17 +01:00

20 lines
470 B
Zig

const common = @import("./common.zig");
const symbol = @import("../compiler_rt.zig").symbol;
const mulf3 = @import("./mulf3.zig").mulf3;
comptime {
if (common.want_aeabi) {
symbol(&__aeabi_dmul, "__aeabi_dmul");
} else {
symbol(&__muldf3, "__muldf3");
}
}
pub fn __muldf3(a: f64, b: f64) callconv(.c) f64 {
return mulf3(f64, a, b);
}
fn __aeabi_dmul(a: f64, b: f64) callconv(.{ .arm_aapcs = .{} }) f64 {
return mulf3(f64, a, b);
}