mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
19 lines
515 B
Zig
19 lines
515 B
Zig
const common = @import("./common.zig");
|
|
|
|
pub const panic = common.panic;
|
|
|
|
comptime {
|
|
if (common.want_aeabi) {
|
|
@export(&__aeabi_dneg, .{ .name = "__aeabi_dneg", .linkage = common.linkage, .visibility = common.visibility });
|
|
} else {
|
|
@export(&__negdf2, .{ .name = "__negdf2", .linkage = common.linkage, .visibility = common.visibility });
|
|
}
|
|
}
|
|
|
|
fn __negdf2(a: f64) callconv(.C) f64 {
|
|
return common.fneg(a);
|
|
}
|
|
|
|
fn __aeabi_dneg(a: f64) callconv(.AAPCS) f64 {
|
|
return common.fneg(a);
|
|
}
|