mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
20 lines
530 B
Zig
20 lines
530 B
Zig
const common = @import("./common.zig");
|
|
|
|
pub const panic = common.panic;
|
|
|
|
comptime {
|
|
if (common.want_aeabi) {
|
|
@export(&__aeabi_fneg, .{ .name = "__aeabi_fneg", .linkage = common.linkage, .visibility = common.visibility });
|
|
} else {
|
|
@export(&__negsf2, .{ .name = "__negsf2", .linkage = common.linkage, .visibility = common.visibility });
|
|
}
|
|
}
|
|
|
|
fn __negsf2(a: f32) callconv(.c) f32 {
|
|
return common.fneg(a);
|
|
}
|
|
|
|
fn __aeabi_fneg(a: f32) callconv(.{ .arm_aapcs = .{} }) f32 {
|
|
return common.fneg(a);
|
|
}
|