Home
last modified time | relevance | path

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

/aosp_15_r20/external/cronet/base/
H A Dsafe_numerics_unittest.cc119 static_assert(2U == MakeClampedNum(kIntOne) + 1, "");
121 static_assert(0U == MakeClampedNum(kIntOne) - 1, "");
123 static_assert(-1 == -MakeClampedNum(kIntOne), "");
125 static_assert(1U == MakeClampedNum(kIntOne) * 1, "");
127 static_assert(1U == MakeClampedNum(kIntOne) / 1, "");
129 static_assert(1 == MakeClampedNum(-kIntOne).Abs(), "");
131 static_assert(1U == MakeClampedNum(kIntOne) % 2, "");
133 static_assert(0U == MakeClampedNum(kIntOne) >> 1U, "");
135 static_assert(2U == MakeClampedNum(kIntOne) << 1U, "");
137 static_assert(1 == MakeClampedNum(kIntOne) & 1U, "");
[all …]
/aosp_15_r20/external/libchrome/base/
H A 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 …]
/aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/time/
H A Dtime.h679 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Days()
684 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Hours()
689 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Minutes()
694 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Seconds()
699 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Milliseconds()
704 return TimeDelta::FromInternalValue(MakeClampedNum(n)); in Microseconds()
708 return TimeDelta::FromInternalValue(MakeClampedNum(n) / in Nanoseconds()
714 MakeClampedNum(n)) in Hertz()
/aosp_15_r20/external/cronet/base/time/
H A Dtime.h880 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Days()
885 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Hours()
890 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Minutes()
895 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Seconds()
900 return TimeDelta::FromInternalValue(MakeClampedNum(n) * in Milliseconds()
905 return TimeDelta::FromInternalValue(MakeClampedNum(n)); in Microseconds()
909 return TimeDelta::FromInternalValue(MakeClampedNum(n) / in Nanoseconds()
915 MakeClampedNum(n)) in Hertz()
/aosp_15_r20/external/cronet/base/numerics/
H A Dclamped_math.h194 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
252 using internal::MakeClampedNum;
H A DREADME.md450 * `MakeClampedNum()` - Creates a new `ClampedNumeric` from the underlying type
/aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/numerics/
H A Dclamped_math.h189 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
249 using internal::MakeClampedNum;
/aosp_15_r20/external/pdfium/third_party/base/numerics/
H A Dclamped_math.h197 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
257 using internal::MakeClampedNum;
/aosp_15_r20/external/libchrome/base/numerics/
H A Dclamped_math.h190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
246 using internal::MakeClampedNum;
H A DREADME.md408 * `MakeClampedNum()` - Creates a new `ClampedNumeric` from the underlying type
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/3/external/libchrome/base/numerics/
Dclamped_math.h193 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
249 using internal::MakeClampedNum;
/aosp_15_r20/external/angle/src/common/base/anglebase/numerics/
H A Dclamped_math.h201 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum(const T value) in MakeClampedNum() function
265 using internal::MakeClampedNum;
/aosp_15_r20/out/soong/.intermediates/external/libchrome/libchrome-include/gen/gensrcs/external/libchrome/base/numerics/
Dclamped_math.h193 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function
249 using internal::MakeClampedNum;
/aosp_15_r20/external/cronet/net/log/
H A Dfile_net_log_observer.cc477 base::MakeClampedNum<uint64_t>(max_total_size) * 2; in CreateInternal()