mirror of
https://github.com/roc-lang/roc.git
synced 2025-11-21 12:28:32 +00:00
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 |
||
|---|---|---|
| .. | ||
| backend.rs | ||
| code_builder.rs | ||
| layout.rs | ||
| lib.rs | ||
| low_level.rs | ||
| storage.rs | ||
| wasm32_result.rs | ||
| wasm32_sized.rs | ||