about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorTobias Rapp <t.rapp@noa-archive.com>2019-04-17 15:28:57 +0200
committerTobias Rapp <t.rapp@noa-archive.com>2019-04-25 17:04:11 +0200
commit8234ac32bd9002a02d7c70a989a04c2278acf78d (patch)
tree2f08c996d1462af6aba59cba65aa96eed0190477 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parent3bee49f42b6dfb039d2a8e59e5181e26531c3c11 (diff)
downloadrust-8234ac32bd9002a02d7c70a989a04c2278acf78d.tar.gz
rust-8234ac32bd9002a02d7c70a989a04c2278acf78d.zip
Add saturating_abs() and saturating_neg() functions to signed integer types
Similar to wrapping_abs() / wrapping_neg() functions but saturating at
the numeric bounds instead of wrapping around. Complements the existing
set of functions with saturation mechanics.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions