mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
6bc6e47b15
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
12 lines
233 B
Zig
12 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);
|
|
}
|