mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 23:04:24 +00:00
Rather than lowering float negation as `0.0 - x`. * Add AIR instruction for float negation. * Add compiler-rt functions for f128, f80 negation closes #11853
11 lines
233 B
Zig
11 lines
233 B
Zig
const common = @import("./common.zig");
|
|
|
|
pub const panic = common.panic;
|
|
|
|
comptime {
|
|
@export(__negtf2, .{ .name = "__negtf2", .linkage = common.linkage });
|
|
}
|
|
|
|
fn __negtf2(a: f128) callconv(.C) f128 {
|
|
return common.fneg(a);
|
|
}
|