Home
last modified time | relevance | path

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

/external/cronet/base/
Dsafe_numerics_unittest.cc118 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/
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/cronet/base/allocator/partition_allocator/partition_alloc_base/time/
Dtime.h708 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/
Dtime.h882 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/
Dclamped_math.h196 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
256 using internal::MakeClampedNum;
DREADME.md450 * `MakeClampedNum()` - Creates a new `ClampedNumeric` from the underlying type
/external/cronet/base/allocator/partition_allocator/partition_alloc_base/numerics/
Dclamped_math.h190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
250 using internal::MakeClampedNum;
/external/pdfium/third_party/base/numerics/
Dclamped_math.h197 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
257 using internal::MakeClampedNum;
/external/angle/src/common/base/anglebase/numerics/
Dclamped_math.h201 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum(const T value) in MakeClampedNum() function
265 using internal::MakeClampedNum;
/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
/external/cronet/net/log/
Dfile_net_log_observer.cc476 base::MakeClampedNum<uint64_t>(max_total_size) * 2; in CreateInternal()