/external/angle/src/common/third_party/base/anglebase/numerics/ |
D | safe_numerics_unittest.cc | 24 using base::IsValueInRangeForNumericType; 684 TEST(SafeNumerics, IsValueInRangeForNumericType) in TEST() argument 686 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(0)); in TEST() 687 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(1)); in TEST() 688 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(2)); in TEST() 689 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(-1)); in TEST() 690 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(0xffffffffu)); in TEST() 691 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0xffffffff))); in TEST() 692 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0x100000000))); in TEST() 693 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0x100000001))); in TEST() [all …]
|
D | safe_conversions.h | 25 constexpr bool IsValueInRangeForNumericType(Src value) in IsValueInRangeForNumericType() function 53 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
|
/external/libchrome/base/numerics/ |
D | checked_math_impl.h | 65 if (BASE_NUMERICS_UNLIKELY(!IsValueInRangeForNumericType<Promotion>(x) || 66 !IsValueInRangeForNumericType<Promotion>(y))) { 79 return is_valid && IsValueInRangeForNumericType<V>(presult); 125 if (BASE_NUMERICS_UNLIKELY(!IsValueInRangeForNumericType<Promotion>(x) || 126 !IsValueInRangeForNumericType<Promotion>(y))) { 139 return is_valid && IsValueInRangeForNumericType<V>(presult); 180 if (BASE_NUMERICS_UNLIKELY((!IsValueInRangeForNumericType<Promotion>(x) || 181 !IsValueInRangeForNumericType<Promotion>(y)) && 198 return is_valid && IsValueInRangeForNumericType<V>(presult); 231 if (BASE_NUMERICS_UNLIKELY((!IsValueInRangeForNumericType<Promotion>(x) || [all …]
|
D | safe_conversions.h | 88 constexpr bool IsValueInRangeForNumericType(Src value) { 108 return BASE_NUMERICS_LIKELY((IsValueInRangeForNumericType<Dst>(value))) 179 return BASE_NUMERICS_LIKELY(IsValueInRangeForNumericType<Dst>(value)) 335 using internal::IsValueInRangeForNumericType;
|
D | safe_math_arm_impl.h | 40 return IsValueInRangeForNumericType<V>(presult); in Do()
|
/external/libchrome/base/ |
D | safe_numerics_unittest.cc | 925 if (IsValueInRangeForNumericType<Dst>(SrcLimits::max())) { in TestStrictComparison() 934 if (IsValueInRangeForNumericType<Dst>(SrcLimits::lowest())) { in TestStrictComparison() 1496 TEST(SafeNumerics, IsValueInRangeForNumericType) { in TEST() argument 1497 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(0)); in TEST() 1498 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(1)); in TEST() 1499 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(2)); in TEST() 1500 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(-1)); in TEST() 1501 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(0xffffffffu)); in TEST() 1502 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0xffffffff))); in TEST() 1503 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0x100000000))); in TEST() [all …]
|
/external/libchrome/ui/gfx/geometry/ |
D | rect.h | 280 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosingRect() 282 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosingRect() 284 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosingRect() 286 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosingRect() 324 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosedRect() 326 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosedRect() 328 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosedRect() 330 DCHECK(base::IsValueInRangeForNumericType<int>( in ScaleToEnclosedRect() 356 base::IsValueInRangeForNumericType<int>(std::round(rect.x() * x_scale))); in ScaleToRoundedRect() 358 base::IsValueInRangeForNumericType<int>(std::round(rect.y() * y_scale))); in ScaleToRoundedRect() [all …]
|
/external/pdfium/third_party/base/numerics/ |
D | safe_math_impl.h | 95 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) && 96 IsValueInRangeForNumericType<Promotion>(y); 105 return is_valid && IsValueInRangeForNumericType<V>(presult); 146 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) && 147 IsValueInRangeForNumericType<Promotion>(y); 156 return is_valid && IsValueInRangeForNumericType<V>(presult); 215 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) && 216 IsValueInRangeForNumericType<Promotion>(y); 225 return is_valid && IsValueInRangeForNumericType<V>(presult); 260 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) && [all …]
|
D | safe_conversions.h | 89 constexpr bool IsValueInRangeForNumericType(Src value) { 109 return BASE_NUMERICS_LIKELY((IsValueInRangeForNumericType<Dst>(value))) 189 return BASE_NUMERICS_LIKELY(IsValueInRangeForNumericType<Dst>(value)) 345 using internal::IsValueInRangeForNumericType;
|
/external/webrtc/rtc_base/numerics/ |
D | safe_conversions.h | 26 inline constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function 36 RTC_CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast() 41 RTC_DCHECK(IsValueInRangeForNumericType<Dst>(value)); in dchecked_cast()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_cross_ref_avail.cpp | 157 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(xrefpos)) in CheckCrossRefV4Trailer() 163 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>( in CheckCrossRefV4Trailer() 194 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(xrefpos)) in CheckCrossRefStream()
|
D | cpdf_linearized_header.cpp | 36 if (!pdfium::base::IsValueInRangeForNumericType<T>(raw_value)) in IsValidNumericDictionaryValue()
|
/external/libchrome/base/files/ |
D | memory_mapped_file_posix.cc | 43 if (!IsValueInRangeForNumericType<size_t>(file_len)) in MapFileRegionToMemory() 62 !IsValueInRangeForNumericType<off_t>(aligned_start)) { in MapFileRegionToMemory()
|
D | memory_mapped_file.cc | 123 DCHECK(IsValueInRangeForNumericType<int32_t>(mask)); in CalculateVMAlignedBoundaries()
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | buffer.cc | 64 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(additional_bytes)); in Allocate() 111 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(additional_bytes)); in Seal()
|
D | message.cc | 90 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(total_size)); in CreateSerializedMessageObject() 92 base::IsValueInRangeForNumericType<uint32_t>(handles->size())); in CreateSerializedMessageObject() 308 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(num_bytes)); in payload_num_bytes()
|
/external/libchrome/mojo/public/cpp/system/ |
D | invitation.cc | 120 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(name.size())); in AttachMessagePipe() 137 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(name.size())); in ExtractMessagePipe() 271 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(name.size())); in ExtractMessagePipe()
|
D | message.h | 94 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(error.size())); in NotifyBadMessage()
|
/external/pdfium/fpdfsdk/ |
D | cpdfsdk_customaccess.cpp | 26 if (!pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(size)) in ReadBlockAtOffset()
|
/external/webrtc/rtc_base/experiments/ |
D | field_trial_parser.cc | 130 if (rtc::IsValueInRangeForNumericType<int, int64_t>(value)) { in ParseTypedParameter() 141 if (rtc::IsValueInRangeForNumericType<unsigned, int64_t>(value)) { in ParseTypedParameter()
|
/external/angle/src/libANGLE/ |
D | BinaryStream.h | 50 ASSERT(angle::IsValueInRangeForNumericType<IntT>(value)); in readInt() 210 ASSERT(angle::IsValueInRangeForNumericType<PromotedIntT>(param)); in writeInt()
|
/external/webrtc/api/audio_codecs/L16/ |
D | audio_encoder_L16.cc | 26 if (!rtc::IsValueInRangeForNumericType<int>(format.num_channels)) { in SdpToConfig()
|
/external/webrtc/rtc_base/ |
D | rtc_certificate_unittest.cc | 71 RTC_CHECK(IsValueInRangeForNumericType<time_t>(expires_s)); in GenerateCertificateWithExpires()
|
/external/pdfium/core/fpdfapi/render/ |
D | cpdf_imagecacheentry.cpp | 30 ASSERT(pdfium::base::IsValueInRangeForNumericType<uint32_t>(height)); in GetEstimatedImageSize()
|
/external/libchrome/mojo/core/ |
D | channel.cc | 127 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(size_)); in Message() 130 DCHECK(base::IsValueInRangeForNumericType<uint16_t>(header_size + in Message() 302 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(size_)); in ExtendPayload()
|