Home
last modified time | relevance | path

Searched refs:UnsignedAbs (Results 1 – 8 of 8) sorted by relevance

/external/libchrome/base/
Dsafe_numerics_unittest.cc271 MakeCheckedNum(DstLimits::lowest()).UnsignedAbs()); in TestSpecializedArithmetic()
273 MakeCheckedNum(DstLimits::max()).UnsignedAbs()); in TestSpecializedArithmetic()
274 TEST_EXPECTED_VALUE(0, CheckedNumeric<Dst>(0).UnsignedAbs()); in TestSpecializedArithmetic()
275 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(1).UnsignedAbs()); in TestSpecializedArithmetic()
276 TEST_EXPECTED_VALUE(1, CheckedNumeric<Dst>(-1).UnsignedAbs()); in TestSpecializedArithmetic()
293 MakeClampedNum(DstLimits::lowest()).UnsignedAbs()); in TestSpecializedArithmetic()
295 MakeClampedNum(DstLimits::max()).UnsignedAbs()); in TestSpecializedArithmetic()
296 TEST_EXPECTED_VALUE(0, ClampedNumeric<Dst>(0).UnsignedAbs()); in TestSpecializedArithmetic()
297 TEST_EXPECTED_VALUE(1, ClampedNumeric<Dst>(1).UnsignedAbs()); in TestSpecializedArithmetic()
298 TEST_EXPECTED_VALUE(1, ClampedNumeric<Dst>(-1).UnsignedAbs()); in TestSpecializedArithmetic()
[all …]
/external/angle/src/common/third_party/base/anglebase/numerics/
Dsafe_math.h179 CheckedNumeric<typename UnsignedOrFloatForSize<T>::type> UnsignedAbs() const in UnsignedAbs() function
Dsafe_numerics_unittest.cc137 TEST_EXPECTED_SUCCESS(CheckedNumeric<Dst>(DstLimits::min()).UnsignedAbs()); in TestSpecializedArithmetic()
140 .UnsignedAbs()); in TestSpecializedArithmetic()
/external/libchrome/base/numerics/
Dclamped_math.h116 UnsignedAbs() const { in UnsignedAbs() function
Dchecked_math.h198 UnsignedAbs() const { in UnsignedAbs() function
DREADME.md237 * `UnsignedAbs()` - Absolute value as an equal-width unsigned underlying type
367 * `UnsignedAbs()` - Absolute value as an equal-width unsigned underlying type
/external/libchrome/base/strings/
Dstring_number_conversions.cc40 CheckedNumeric<INT>(value).UnsignedAbs().ValueOrDie(); in IntToString()
/external/pdfium/third_party/base/numerics/
Dsafe_math.h264 UnsignedAbs() const { in UnsignedAbs() function