Implement 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().

Review URL: https://codereview.chromium.org/1346753002

Cr-Commit-Position: refs/heads/master@{#349300}


CrOS-Libchrome-Original-Commit: eaf375f8db272522afff267fe92fa6b27012a78f
3 files changed
tree: f69b452863515c31ddc7668780bf872260e4c2a8
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/