Home
last modified time | relevance | path

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

12

/external/libchrome/base/numerics/
Dchecked_math_impl.h65 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 …]
Dsafe_conversions.h88 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;
Dsafe_math_arm_impl.h40 return IsValueInRangeForNumericType<V>(presult); in Do()
/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()
/external/libchrome/ui/gfx/geometry/
Drect.h280 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/v8/src/base/
Dsafe_conversions.h21 inline bool IsValueInRangeForNumericType(Src value) { in IsValueInRangeForNumericType() function
31 CHECK(IsValueInRangeForNumericType<Dst>(value)); in checked_cast()
/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/pdfium/core/fpdfapi/parser/
Dcpdf_cross_ref_avail.cpp156 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(xrefpos)) in CheckCrossRefV4Trailer()
162 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>( in CheckCrossRefV4Trailer()
193 pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(xrefpos)) in CheckCrossRefStream()
Dcpdf_hint_tables.cpp70 !pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(nStreamLen)) { in ReadPageHintTable()
92 if (!pdfium::base::IsValueInRangeForNumericType<FX_FILESIZE>(dwFirstObjLoc)) in ReadPageHintTable()
388 if (!pdfium::base::IsValueInRangeForNumericType<uint32_t>(nFirstPageNum)) in GetPagePos()
409 if (!pdfium::base::IsValueInRangeForNumericType<uint32_t>(nFirstPageNum)) in CheckPage()
Dcpdf_linearized_header.cpp35 if (!pdfium::base::IsValueInRangeForNumericType<T>(raw_value)) in IsValidNumericDictionaryValue()
/external/libchrome/base/files/
Dmemory_mapped_file_posix.cc43 if (!IsValueInRangeForNumericType<size_t>(file_len)) in MapFileRegionToMemory()
62 !IsValueInRangeForNumericType<off_t>(aligned_start)) { in MapFileRegionToMemory()
Dmemory_mapped_file.cc123 DCHECK(IsValueInRangeForNumericType<int32_t>(mask)); in CalculateVMAlignedBoundaries()
Dimportant_file_writer.cc253 if (!IsValueInRangeForNumericType<int32_t>(data->length())) { in WriteNow()
/external/libchrome/mojo/public/cpp/bindings/lib/
Dbuffer.cc64 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(additional_bytes)); in Allocate()
111 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(additional_bytes)); in Seal()
Dmessage.cc90 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()
Dserialization.h112 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(data_num_bytes));
/external/libchrome/mojo/public/cpp/system/
Dinvitation.cc120 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()
Dmessage.h94 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(error.size())); in NotifyBadMessage()
Dfile_data_pipe_producer.cc162 DCHECK(base::IsValueInRangeForNumericType<int>(size)); in TransferSomeBytes()
Dplatform_handle.cc305 DCHECK(base::IsValueInRangeForNumericType<size_t>(num_bytes)); in UnwrapSharedMemoryHandle()
/external/libchrome/mojo/core/
Dchannel.cc127 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()
/external/libchrome/mojo/core/ports/
Devent.cc211 DCHECK(base::IsValueInRangeForNumericType<uint32_t>(ports_.size())); in SerializeData()
/external/libchrome/base/json/
Djson_parser.cc85 if (!base::IsValueInRangeForNumericType<int32_t>(input.length())) { in Parse()

12