/aosp_15_r20/external/cronet/base/ |
H A D | safe_numerics_unittest.cc | 119 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 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 …]
|
/aosp_15_r20/external/cronet/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/time/ |
H A D | time.h | 679 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 D | time.h | 880 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 D | clamped_math.h | 194 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 252 using internal::MakeClampedNum;
|
H A D | README.md | 450 * `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 D | clamped_math.h | 189 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 D | clamped_math.h | 197 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 257 using internal::MakeClampedNum;
|
/aosp_15_r20/external/libchrome/base/numerics/ |
H A D | clamped_math.h | 190 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 246 using internal::MakeClampedNum;
|
H A D | README.md | 408 * `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/ |
D | clamped_math.h | 193 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 D | clamped_math.h | 201 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/ |
D | clamped_math.h | 193 constexpr ClampedNumeric<typename UnderlyingType<T>::type> MakeClampedNum( in MakeClampedNum() function 249 using internal::MakeClampedNum;
|
/aosp_15_r20/external/cronet/net/log/ |
H A D | file_net_log_observer.cc | 477 base::MakeClampedNum<uint64_t>(max_total_size) * 2; in CreateInternal()
|