Searched refs:IsValueInRangeForNumericType (Results 1 – 13 of 13) sorted by relevance
24 using base::IsValueInRangeForNumericType;665 TEST(SafeNumerics, IsValueInRangeForNumericType) { in TEST() argument666 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(0)); in TEST()667 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(1)); in TEST()668 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(2)); in TEST()669 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(-1)); in TEST()670 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(0xffffffffu)); in TEST()671 EXPECT_TRUE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0xffffffff))); in TEST()672 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0x100000000))); in TEST()673 EXPECT_FALSE(IsValueInRangeForNumericType<uint32_t>(UINT64_C(0x100000001))); in TEST()[all …]
21 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function49 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
91 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) &&92 IsValueInRangeForNumericType<Promotion>(y);101 return is_valid && IsValueInRangeForNumericType<V>(presult);142 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) &&143 IsValueInRangeForNumericType<Promotion>(y);152 return is_valid && IsValueInRangeForNumericType<V>(presult);211 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) &&212 IsValueInRangeForNumericType<Promotion>(y);221 return is_valid && IsValueInRangeForNumericType<V>(presult);256 bool is_valid = IsValueInRangeForNumericType<Promotion>(x) &&[all …]
54 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function79 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast()
134 IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
26 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function35 RTC_CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
70 RTC_CHECK(IsValueInRangeForNumericType<time_t>(expires_s)); in GenerateCertificateWithExpires()
21 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function31 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
68 !pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(nStreamLen)) { in ReadPageHintTable()90 if (!pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(dwFirstObjLoc)) in ReadPageHintTable()378 if (!pdfium::base::IsValueInRangeForNumericType<uint32_t>(nFirstPageNum)) in GetPagePos()404 if (!pdfium::base::IsValueInRangeForNumericType<uint32_t>(nFirstPageNum)) in CheckPage()
30 if (!pdfium::base::IsValueInRangeForNumericType<T>(raw_value)) in IsValidNumericDictionaryValue()
442 if (base::IsValueInRangeForNumericType<decltype(range_out->location)>(444 base::IsValueInRangeForNumericType<decltype(range_out->length)>(446 base::IsValueInRangeForNumericType<decltype(range_out->location)>(
163 if (!IsValueInRangeForNumericType<int32_t>(data->length())) { in WriteNow()
3246 if (base::IsValueInRangeForNumericType<int>(size)) { in ValueDeserializer()