roc/crates/compiler/gen_llvm
shua a98acff0b9
gen-dev: impl Num.neg for Dec,F32,F64
Dec negation was implemented across gen-dev, gen-llvm, gen-wasm as a call
to the compiled zig function `bitcode::DEC_NEGATE`.

f32 and f64 negation were implemented already for gen-llvm, gen-wasm.

for gen-dev x86_64, float negation is implemented by flipping the sign
bit, which means `xorps` for f32, and `xorpd` for f64

for gen-dev aarch64, there is conveniently a `fneg` instruction
2024-11-23 19:17:55 +01:00
..
src gen-dev: impl Num.neg for Dec,F32,F64 2024-11-23 19:17:55 +01:00
Cargo.toml roc_bitcode false positive 2024-04-09 20:01:33 +02:00