DescriptionImplement CheckedNumeric::UnsignedAbs()
This covers some corner cases where we want an equivalent to
std::abs() for signed integers, but we want it to convert to
an unsigned type of the same width and properly handle the
value of signed min().
Committed: https://crrev.com/eaf375f8db272522afff267fe92fa6b27012a78f
Cr-Commit-Position: refs/heads/master@{#349300}
Patch Set 1 #Patch Set 2 : nits #
Total comments: 1
Patch Set 3 : comments #Patch Set 4 : gcc/glang build fix #Patch Set 5 : gcc build fix #
Messages
Total messages: 18 (10 generated)
|