Home
last modified time | relevance | path

Searched refs:MakeClampedNum (Results 1 – 3 of 3) sorted by relevance

/external/libchrome/base/
Dsafe_numerics_unittest.cc221 MakeClampedNum(-DstLimits::max()).Abs()); in TestSpecializedArithmetic()
293 MakeClampedNum(DstLimits::lowest()).UnsignedAbs()); in TestSpecializedArithmetic()
295 MakeClampedNum(DstLimits::max()).UnsignedAbs()); in TestSpecializedArithmetic()
421 MakeClampedNum(DstLimits::lowest()).UnsignedAbs()); in TestSpecializedArithmetic()
423 MakeClampedNum(DstLimits::max()).UnsignedAbs()); in TestSpecializedArithmetic()
517 MakeClampedNum(DstLimits::max()) & -1); in TestSpecializedArithmetic()
666 TEST_EXPECTED_VALUE(0, -MakeClampedNum(value)); in TestArithmetic()
668 TEST_EXPECTED_VALUE(-1, -MakeClampedNum(value)); in TestArithmetic()
670 TEST_EXPECTED_VALUE(-2, -MakeClampedNum(value)); in TestArithmetic()
672 TEST_EXPECTED_VALUE(1, -MakeClampedNum(value)); in TestArithmetic()
[all …]
/external/libchrome/base/numerics/
Dclamped_math.h190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
246 using internal::MakeClampedNum;
DREADME.md408 * `MakeClampedNum()` - Creates a new `ClampedNumeric` from the underlying type