diff options
| author | Hans Kratz <hans@appfour.com> | 2021-07-15 09:58:35 +0200 |
|---|---|---|
| committer | Hans Kratz <hans@appfour.com> | 2021-07-15 09:58:35 +0200 |
| commit | a3fb1d618823ccab589fbca2b6d4cc3619900bc1 (patch) | |
| tree | 57a2ba3277274a39add2a59225f3c89239e72ffc /compiler/rustc_codegen_gcc | |
| parent | b9197978a90be6f7570741eabe2da175fec75375 (diff) | |
| download | rust-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')
0 files changed, 0 insertions, 0 deletions
