about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2019-09-13 10:20:17 +0200
committerTrevor Spiteri <tspiteri@ieee.org>2019-09-13 10:20:17 +0200
commit562903a0a684860c0e51971ea11f1ce97795d6a2 (patch)
tree8d753ef30a535b381862b316e9909e8ee2c3003d /src/libsyntax/parse/parser
parentfe6d05a8b32f5c66c427ca524dbcce5a7145f87e (diff)
downloadrust-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