Home
last modified time | relevance | path

Searched refs:IsValueInRangeForNumericType (Results 1 – 13 of 13) sorted by relevance

/external/libchrome/base/numerics/
Dsafe_numerics_unittest.cc24 using base::IsValueInRangeForNumericType;
665 TEST(SafeNumerics, IsValueInRangeForNumericType) { in TEST() argument
666 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 …]
Dsafe_conversions.h21 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function
49 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
/external/pdfium/third_party/base/numerics/
Dsafe_math_impl.h91 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 …]
Dsafe_conversions.h54 constexpr bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function
79 return IsValueInRangeForNumericType<Dst, SrcType>(value) in checked_cast()
Dsafe_math.h134 IsValueInRangeForNumericType<Dst>(state_.value()); in IsValid()
/external/webrtc/webrtc/base/
Dsafe_conversions.h26 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function
35 RTC_CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
Drtccertificate_unittests.cc70 RTC_CHECK(IsValueInRangeForNumericType<time_t>(expires_s)); in GenerateCertificateWithExpires()
/external/v8/src/base/
Dsafe_conversions.h21 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function
31 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_hint_tables.cpp68 !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()
Dcpdf_linearized_header.cpp30 if (!pdfium::base::IsValueInRangeForNumericType<T>(raw_value)) in IsValidNumericDictionaryValue()
/external/libchrome/base/mac/
Dfoundation_util.mm442 if (base::IsValueInRangeForNumericType<decltype(range_out->location)>(
444 base::IsValueInRangeForNumericType<decltype(range_out->length)>(
446 base::IsValueInRangeForNumericType<decltype(range_out->location)>(
/external/libchrome/base/files/
Dimportant_file_writer.cc163 if (!IsValueInRangeForNumericType<int32_t>(data->length())) { in WriteNow()
/external/v8/src/
Dapi.cc3246 if (base::IsValueInRangeForNumericType<int>(size)) { in ValueDeserializer()