diff options
| author | Trevor Spiteri <tspiteri@ieee.org> | 2019-09-13 10:20:17 +0200 |
|---|---|---|
| committer | Trevor Spiteri <tspiteri@ieee.org> | 2019-09-13 10:20:17 +0200 |
| commit | 562903a0a684860c0e51971ea11f1ce97795d6a2 (patch) | |
| tree | 8d753ef30a535b381862b316e9909e8ee2c3003d /src/libsyntax/parse/parser | |
| parent | fe6d05a8b32f5c66c427ca524dbcce5a7145f87e (diff) | |
| download | rust-562903a0a684860c0e51971ea11f1ce97795d6a2.tar.gz rust-562903a0a684860c0e51971ea11f1ce97795d6a2.zip | |
use `sign` variable in abs and wrapping_abs methods
This also makes the code easier to understand by hinting at the significance of `self >> ($BITS - 1)` and by including an explanation in the comments. Also, now overflowing_abs simply uses wrapping_abs, which is clearer and avoids a potential performance regression in the LLVM IR.
Diffstat (limited to 'src/libsyntax/parse/parser')
0 files changed, 0 insertions, 0 deletions
