2022-06-30 08:02:00 +01:00
|
|
|
const common = @import("./common.zig");
|
|
|
|
|
|
|
|
pub const panic = common.panic;
|
|
|
|
|
|
|
|
comptime {
|
|
|
|
if (common.want_aeabi) {
|
2022-12-28 13:57:17 +00:00
|
|
|
@export(__aeabi_dneg, .{ .name = "__aeabi_dneg", .linkage = common.linkage, .visibility = common.visibility });
|
2022-06-30 08:02:00 +01:00
|
|
|
} else {
|
2022-12-28 13:57:17 +00:00
|
|
|
@export(__negdf2, .{ .name = "__negdf2", .linkage = common.linkage, .visibility = common.visibility });
|
2022-06-30 08:02:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn __negdf2(a: f64) callconv(.C) f64 {
|
|
|
|
return common.fneg(a);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn __aeabi_dneg(a: f64) callconv(.AAPCS) f64 {
|
|
|
|
return common.fneg(a);
|
|
|
|
}
|