about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc/example/alloc_example.rs
diff options
context:
space:
mode:
authorHans Kratz <hans@appfour.com>2021-07-15 09:58:35 +0200
committerHans Kratz <hans@appfour.com>2021-07-15 09:58:35 +0200
commita3fb1d618823ccab589fbca2b6d4cc3619900bc1 (patch)
tree57a2ba3277274a39add2a59225f3c89239e72ffc /compiler/rustc_codegen_gcc/example/alloc_example.rs
parentb9197978a90be6f7570741eabe2da175fec75375 (diff)
downloadrust-a3fb1d618823ccab589fbca2b6d4cc3619900bc1.tar.gz
rust-a3fb1d618823ccab589fbca2b6d4cc3619900bc1.zip
Make wrapping_neg() use wrapping_sub(), #[inline(always)]
This is a follow-up change to the fix for #75598. It simplifies the implementation of wrapping_neg() for all integer types by just calling 0.wrapping_sub(self) and always inlines it. This leads to much less assembly code being emitted for opt-level≤1.
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/alloc_example.rs')
0 files changed, 0 insertions, 0 deletions