Searched refs:MakeClampedNum (Results 1 – 12 of 12) sorted by relevance
/external/cronet/base/ |
D | safe_numerics_unittest.cc | 118 static_assert(2U == MakeClampedNum(kIntOne) + 1, ""); 120 static_assert(0U == MakeClampedNum(kIntOne) - 1, ""); 122 static_assert(-1 == -MakeClampedNum(kIntOne), ""); 124 static_assert(1U == MakeClampedNum(kIntOne) * 1, ""); 126 static_assert(1U == MakeClampedNum(kIntOne) / 1, ""); 128 static_assert(1 == MakeClampedNum(-kIntOne).Abs(), ""); 130 static_assert(1U == MakeClampedNum(kIntOne) % 2, ""); 132 static_assert(0U == MakeClampedNum(kIntOne) >> 1U, ""); 134 static_assert(2U == MakeClampedNum(kIntOne) << 1U, ""); 136 static_assert(1 == MakeClampedNum(kIntOne) & 1U, ""); [all …]
|
/external/libchrome/base/ |
D | safe_numerics_unittest.cc | 221 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/cronet/base/allocator/partition_allocator/partition_alloc_base/time/ |
D | time.h | 708 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Days() 713 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Hours() 718 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Minutes() 723 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Seconds() 728 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Milliseconds() 733 return TimeDelta::FromInternalValue(MakeClampedNum(n)); in Microseconds() 737 return TimeDelta::FromInternalValue(MakeClampedNum(n) / in Nanoseconds() 743 MakeClampedNum(n)) in Hertz()
|
/external/cronet/base/time/ |
D | time.h | 882 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Days() 887 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Hours() 892 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Minutes() 897 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Seconds() 902 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Milliseconds() 907 return TimeDelta::FromInternalValue(MakeClampedNum(n)); in Microseconds() 911 return TimeDelta::FromInternalValue(MakeClampedNum(n) / in Nanoseconds() 917 MakeClampedNum(n)) in Hertz()
|
/external/cronet/base/numerics/ |
D | clamped_math.h | 196 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 256 using internal::MakeClampedNum;
|
D | README.md | 450 * `MakeClampedNum()` - Creates a new `ClampedNumeric` from the underlying type
|
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/numerics/ |
D | clamped_math.h | 190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 250 using internal::MakeClampedNum;
|
/external/pdfium/third_party/base/numerics/ |
D | clamped_math.h | 197 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 257 using internal::MakeClampedNum;
|
/external/angle/src/common/base/anglebase/numerics/ |
D | clamped_math.h | 201 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum(const T value) in MakeClampedNum() function 265 using internal::MakeClampedNum;
|
/external/libchrome/base/numerics/ |
D | clamped_math.h | 190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 246 using internal::MakeClampedNum;
|
D | README.md | 408 * `MakeClampedNum()` - Creates a new `ClampedNumeric` from the underlying type
|
/external/cronet/net/log/ |
D | file_net_log_observer.cc | 476 base::MakeClampedNum<uint64_t>(max_total_size) * 2; in CreateInternal()
|