zig/lib/compiler_rt/negtf2.zig
Jan Philipp Hafer 539e0b0469 compiler_rt: fixup exports of PPC routines
PPC targets can also use the functionality-equivalent standard routine, so
unconditionally export the standard routine.

Fixup of #16054 merged in f043071cdf.
2023-06-18 15:27:47 -07:00

14 lines
407 B
Zig

const common = @import("./common.zig");
pub const panic = common.panic;
comptime {
if (common.want_ppc_abi)
@export(__negtf2, .{ .name = "__negkf2", .linkage = common.linkage, .visibility = common.visibility });
@export(__negtf2, .{ .name = "__negtf2", .linkage = common.linkage, .visibility = common.visibility });
}
fn __negtf2(a: f128) callconv(.C) f128 {
return common.fneg(a);
}