/third_party/gn/src/base/numerics/ |
H A D | checked_math.h | 19 class CheckedNumeric { class 21 "CheckedNumeric<T>: T must be a numeric type."); 26 constexpr CheckedNumeric() = default; 30 constexpr CheckedNumeric(const CheckedNumeric<Src>& rhs) in CheckedNumeric() function in base::internal::CheckedNumeric 34 friend class CheckedNumeric; 39 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric() function in base::internal::CheckedNumeric 47 constexpr CheckedNumeric( in CheckedNumeric() function in base::internal::CheckedNumeric 51 // IsValid() - The public API to test if a CheckedNumeric is currently valid. 105 // CheckedNumeric 260 constexpr CheckedNumeric(Src value, bool is_valid) CheckedNumeric() function in base::internal::CheckedNumeric [all...] |
H A D | safe_conversions_impl.h | 595 // The following are helper templates used in the CheckedNumeric class. 597 class CheckedNumeric; 605 // Used to treat CheckedNumeric and arithmetic underlying types the same. 616 struct UnderlyingType<CheckedNumeric<T>> {
|
/third_party/skia/third_party/externals/angle2/src/common/third_party/base/anglebase/numerics/ |
H A D | checked_math.h | 23 class CheckedNumeric class 25 static_assert(std::is_arithmetic<T>::value, "CheckedNumeric<T>: T must be a numeric type."); 29 friend class CheckedNumeric; 33 constexpr CheckedNumeric() = default; 37 constexpr CheckedNumeric(const CheckedNumeric<Src> &rhs) in CheckedNumeric() function in angle::base::internal::CheckedNumeric 44 constexpr CheckedNumeric(Src value) // NOLINT(runtime/explicit) in CheckedNumeric() function in angle::base::internal::CheckedNumeric 53 constexpr CheckedNumeric(StrictNumeric<Src> value) // NOLINT(runtime/explicit) in CheckedNumeric() function in angle::base::internal::CheckedNumeric 57 // IsValid() - The public API to test if a CheckedNumeric is currently valid. 112 // CheckedNumeric 257 constexpr CheckedNumeric(Src value, bool is_valid) : state_(value, is_valid) CheckedNumeric() function in angle::base::internal::CheckedNumeric [all...] |
H A D | safe_conversions_impl.h | 620 // The following are helper templates used in the CheckedNumeric class. 622 class CheckedNumeric; 630 // Used to treat CheckedNumeric and arithmetic underlying types the same. 642 struct UnderlyingType<CheckedNumeric<T>>
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | VertexAttribute.cpp | 93 angle::CheckedNumeric<GLint64> bufferSize(buffer->getSize()); in updateCachedElementLimit() 94 angle::CheckedNumeric<GLint64> bufferOffset(binding.getOffset()); in updateCachedElementLimit() 95 angle::CheckedNumeric<GLint64> attribOffset(relativeOffset); in updateCachedElementLimit() 96 angle::CheckedNumeric<GLint64> attribSize(ComputeVertexAttributeTypeSize(*this)); in updateCachedElementLimit() 99 angle::CheckedNumeric<GLint64> elementLimit = in updateCachedElementLimit() 123 angle::CheckedNumeric<GLint64> bindingStride(binding.getStride()); in updateCachedElementLimit() 129 angle::CheckedNumeric<GLint64> bindingDivisor(binding.getDivisor()); in updateCachedElementLimit()
|
H A D | angletypes.cpp | 644 angle::CheckedNumeric<int> sourceX2(source.x); 650 angle::CheckedNumeric<int> sourceY2(source.y); 661 angle::CheckedNumeric<int> clipX2(clip.x); 667 angle::CheckedNumeric<int> clipY2(clip.y); 705 ASSERT((angle::CheckedNumeric<int>(rect1.x) + rect1.width).IsValid()); 706 ASSERT((angle::CheckedNumeric<int>(rect1.y) + rect1.height).IsValid()); 707 ASSERT((angle::CheckedNumeric<int>(rect2.x) + rect2.width).IsValid()); 708 ASSERT((angle::CheckedNumeric<int>(rect2.y) + rect2.height).IsValid()); 750 ASSERT((angle::CheckedNumeric<int>(source.x) + source.width).IsValid()); 751 ASSERT((angle::CheckedNumeric<in [all...] |
H A D | BinaryStream.h | 111 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in readString() 133 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in skip() 169 angle::CheckedNumeric<size_t> checkedLength(num); in read() 177 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in read()
|
H A D | TransformFeedback.cpp | 23 angle::CheckedNumeric<GLsizeiptr> GetVerticesNeededForDraw(PrimitiveMode primitiveMode, in GetVerticesNeededForDraw() 33 angle::CheckedNumeric<GLsizeiptr> checkedCount = count; in GetVerticesNeededForDraw() 34 angle::CheckedNumeric<GLsizeiptr> checkedPrimcount = primcount; in GetVerticesNeededForDraw()
|
H A D | formatutils.cpp | 29 bool CheckedMathResult(const CheckedNumeric<GLuint> &value, GLuint *resultOut) in CheckedMathResult() 1626 CheckedNumeric<GLuint> checkedWidth(width); in computeBufferRowLength() 1630 angle::CheckedNumeric<uint32_t> checkedRowLength = in computeBufferRowLength() 1641 CheckedNumeric<GLuint> checkedHeight(height); in computeBufferImageHeight() 1645 angle::CheckedNumeric<uint32_t> checkedImageHeight = in computeBufferImageHeight() 1666 CheckedNumeric<GLuint> checkedWidth(rowLength > 0 ? rowLength : width); in computeRowPitch() 1667 CheckedNumeric<GLuint> checkedRowBytes = checkedWidth * computePixelBytes(formatType); in computeRowPitch() 1670 CheckedNumeric<GLuint> checkedAlignment(alignment); in computeRowPitch() 1681 CheckedNumeric<GLuint> pixelsHeight(!compressed && (imageHeight > 0) in computeDepthPitch() 1685 CheckedNumeric<GLuin in computeDepthPitch() [all...] |
H A D | Renderbuffer.cpp | 312 angle::CheckedNumeric<GLint> size = 1; in getMemorySize()
|
H A D | Shader.cpp | 488 angle::CheckedNumeric<uint32_t> checked_local_size_product(mState.mLocalSize[0]); in resolveCompile()
|
H A D | validationES.cpp | 84 CheckedNumeric<GLint> checkedA(a); in DifferenceCanOverflow() 1201 CheckedNumeric<size_t> checkedEndByte(endByte); in ValidImageDataSize() 1202 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(pixels)); in ValidImageDataSize() 5096 CheckedNumeric<size_t> checkedOffset(offset); in ValidateMapBufferRangeBase() 5216 CheckedNumeric<size_t> checkedOffset(offset); in ValidateFlushMappedBufferRangeBase() 7002 CheckedNumeric<size_t> checkedEndByte(endByte); in ValidatePixelPack() 7003 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(pixels)); in ValidatePixelPack() 7187 angle::CheckedNumeric<int> clippedExtent(length); in ValidateReadPixelsBase() 7194 angle::CheckedNumeric<int> readExtent = start; in ValidateReadPixelsBase()
|
H A D | validationES31.cpp | 525 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(indirect)); in ValidateDrawArraysIndirect() 563 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(indirect)); in ValidateDrawElementsIndirect() 1545 CheckedNumeric<GLuint64> checkedOffset(static_cast<GLuint64>(indirect)); in ValidateDispatchComputeIndirect()
|
H A D | Texture.cpp | 626 angle::CheckedNumeric<GLint> levelSize = 1; in getMemorySize() 1160 angle::CheckedNumeric<GLint> size = 0; in getMemorySize()
|
H A D | validationES3.cpp | 3399 CheckedNumeric<GLintptr> checkedReadOffset(readOffset); in ValidateCopyBufferSubData() 3400 CheckedNumeric<GLintptr> checkedWriteOffset(writeOffset); in ValidateCopyBufferSubData() 3401 CheckedNumeric<GLintptr> checkedSize(size); in ValidateCopyBufferSubData()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/ |
H A D | VertexDataManager.cpp | 45 CheckedNumeric<int64_t> stride = ComputeVertexAttributeStride(attrib, binding); in GetMaxAttributeByteOffsetForDraw() 46 CheckedNumeric<int64_t> offset = ComputeVertexAttributeOffset(attrib, binding); in GetMaxAttributeByteOffsetForDraw() 47 CheckedNumeric<int64_t> size = ComputeVertexAttributeTypeSize(attrib); in GetMaxAttributeByteOffsetForDraw() 51 CheckedNumeric<int64_t> result = in GetMaxAttributeByteOffsetForDraw() 52 stride * (CheckedNumeric<int64_t>(elementCount) - 1) + size + offset; in GetMaxAttributeByteOffsetForDraw() 61 angle::CheckedNumeric<size_t> bufferSize(size); in ElementsInBuffer() 62 angle::CheckedNumeric<size_t> stride = ComputeVertexAttributeStride(attrib, binding); in ElementsInBuffer() 63 angle::CheckedNumeric<size_t> offset = ComputeVertexAttributeOffset(attrib, binding); in ElementsInBuffer() 64 angle::CheckedNumeric<size_t> elementSize = ComputeVertexAttributeTypeSize(attrib); in ElementsInBuffer() 153 CheckedNumeric<unsigne in computeOffset() [all...] |
H A D | VertexBuffer.cpp | 184 angle::CheckedNumeric<unsigned int> checkedPosition(mWritePosition); in storeDynamicAttribute()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | blocklayout.cpp | 215 angle::base::CheckedNumeric<size_t> checkedOffset(arrayStride); in encodeArrayOfPreEncodedStructs() 226 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in getCurrentOffset() 258 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in align() 261 angle::base::CheckedNumeric<size_t> checkedAlignmentOffset = checkedOffset; in align() 341 angle::base::CheckedNumeric<size_t> checkedOffset(arrayStride); in advanceOffset() 348 angle::base::CheckedNumeric<size_t> checkedOffset(matrixStride); in advanceOffset() 355 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in advanceOffset()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/ |
H A D | FramebufferGL.cpp | 33 using angle::CheckedNumeric; 299 CheckedNumeric<GLuint> checkedRowBytes(rowBytes); in Initialize() 300 CheckedNumeric<GLuint> checkedRows(area.height); in Initialize() 301 CheckedNumeric<GLuint> checkedSkipBytes(skipBytes); in Initialize() 968 CheckedNumeric<GLuint> checkedXOffset(destOriginX - bounds.destRegion.x - extraXOffset / 2); in adjustSrcDstRegion() 969 CheckedNumeric<GLuint> checkedYOffset(destOriginY - bounds.destRegion.y - extraYOffset / 2); in adjustSrcDstRegion() 1092 CheckedNumeric<GLuint> checkedXOffset(sourceOriginX - bounds.sourceRegion.x - in adjustSrcDstRegion() 1094 CheckedNumeric<GLuint> checkedYOffset(sourceOriginY - bounds.sourceRegion.y - in adjustSrcDstRegion()
|
H A D | renderergl_utils.cpp | 36 using angle::CheckedNumeric; 2603 CheckedNumeric<size_t> checkedPixelBytes = glFormat.computePixelBytes(type); in ShouldApplyLastRowPaddingWorkaround() 2604 CheckedNumeric<size_t> checkedEndByte = in ShouldApplyLastRowPaddingWorkaround() 2605 angle::CheckedNumeric<size_t>(endByte) + reinterpret_cast<intptr_t>(pixels); in ShouldApplyLastRowPaddingWorkaround()
|
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | mathutil.h | 26 using base::CheckedNumeric; 1389 angle::CheckedNumeric<T> CheckedRoundUp(const T value, const T alignment) in CheckedRoundUp() 1391 angle::CheckedNumeric<T> checkedValue(value); in CheckedRoundUp() 1392 angle::CheckedNumeric<T> checkedAlignment(alignment); in CheckedRoundUp()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | Query11.cpp | 290 angle::CheckedNumeric<UINT64> checkedTime(endTime); in testQuery()
|
H A D | renderer11_utils.cpp | 2193 using CheckedSize = angle::CheckedNumeric<size_t>; in GenerateInitialTextureData() 2213 using CheckedUINT = angle::CheckedNumeric<UINT>; in GenerateInitialTextureData()
|
/third_party/gn/src/base/strings/ |
H A D | string_number_conversions.cc | 40 CheckedNumeric<INT>(value).UnsignedAbs().ValueOrDie(); in IntToString()
|
/third_party/node/deps/v8/src/base/ |
H A D | safe_conversions_impl.h | 575 // The following are helper templates used in the CheckedNumeric class. 577 class CheckedNumeric; 585 // Used to treat CheckedNumeric and arithmetic underlying types the same. 596 struct UnderlyingType<CheckedNumeric<T>> {
|