/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | ExecutableMemory.cpp | 267 inline uintptr_t roundUp(uintptr_t x, uintptr_t m) in roundUp() function 276 size_t length = roundUp(bytes, pageSize); in allocateMemoryPages() 334 ASSERT(roundUp(reservation, pageSize) == reservation); in allocateMemoryPages() 371 bytes = roundUp(bytes, memoryPageSize()); in protectMemoryPages() 406 size_t length = roundUp(bytes, pageSize); in deallocateMemoryPages()
|
/third_party/skia/third_party/externals/dawn/src/common/ |
H A D | BitSetIterator.h | 29 T roundUp(const T value, const T alignment) { in roundUp() function 95 mOffset = static_cast<unsigned long>(roundUp(N, kBitsPerWord)); in Iterator()
|
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | mathutil_unittest.cpp | 214 // Some basic tests. Pow2 roundUp test and test that rounding up zero produces zero. 225 EXPECT_EQ(0u, rx::roundUp(0u, 5u)); 226 EXPECT_EQ(5u, rx::roundUp(1u, 5u)); 227 EXPECT_EQ(5u, rx::roundUp(4u, 5u)); 228 EXPECT_EQ(5u, rx::roundUp(5u, 5u));
|
H A D | mathutil.h | 1368 T roundUp(const T value, const T alignment) in roundUp() function 1393 return roundUp(checkedValue, checkedAlignment); in CheckedRoundUp()
|
/third_party/spirv-tools/source/val/ |
H A D | validate_decorations.cpp | 175 // Returns base alignment of struct member. If |roundUp| is true, also 177 // multiple of 16 bytes. (That is, when roundUp is true, this function 179 uint32_t getBaseAlignment(uint32_t member_id, bool roundUp, 203 componentId, roundUp, inherited, constraints, vstate); 211 baseAlignment = getBaseAlignment(column_type, roundUp, inherited, 220 component_id, roundUp, inherited, constraints, vstate); 224 if (roundUp) baseAlignment = align(baseAlignment, 16u); 229 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); 230 if (roundUp) baseAlignment = align(baseAlignment, 16u); 241 getBaseAlignment(id, roundUp, constrain [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/val/ |
H A D | validate_decorations.cpp | 171 // Returns base alignment of struct member. If |roundUp| is true, also 174 uint32_t getBaseAlignment(uint32_t member_id, bool roundUp, 191 componentId, roundUp, inherited, constraints, vstate); 199 baseAlignment = getBaseAlignment(column_type, roundUp, inherited, 208 component_id, roundUp, inherited, constraints, vstate); 216 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); 217 if (roundUp) baseAlignment = align(baseAlignment, 16u); 228 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); 230 if (roundUp) baseAlignment = align(baseAlignment, 16u);
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/ |
H A D | validate_decorations.cpp | 171 // Returns base alignment of struct member. If |roundUp| is true, also 174 uint32_t getBaseAlignment(uint32_t member_id, bool roundUp, 191 componentId, roundUp, inherited, constraints, vstate); 199 baseAlignment = getBaseAlignment(column_type, roundUp, inherited, 208 component_id, roundUp, inherited, constraints, vstate); 216 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); 217 if (roundUp) baseAlignment = align(baseAlignment, 16u); 228 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); 230 if (roundUp) baseAlignment = align(baseAlignment, 16u);
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawBufferObjectUtil.cpp | 65 const auto extraRoom = de::roundUp(allocationOffset, bufferRequirements.alignment); in createAndAlloc()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawBufferObjectUtil.cpp | 65 const auto extraRoom = de::roundUp(allocationOffset, bufferRequirements.alignment); in createAndAlloc()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | blocklayoutHLSL.cpp | 165 rx::roundUp<size_t>(encoder.getCurrentOffset(), registerBytes) / registerBytes); in HLSLVariableRegisterCount()
|
/third_party/decimal.js/ |
H A D | decimal.js | 2947 var digits, i, j, k, rd, roundUp, w, xd, xdi, 3018 roundUp = rm < 4 3028 if (roundUp) { 3059 if (roundUp) { 3796 var base, e, i, k, len, roundUp, str, xd, y, 3861 roundUp = inexact; 3867 roundUp = roundUp || xd[sd + 1] !== void 0; 3869 roundUp = rm < 4 3870 ? (i !== void 0 || roundUp) [all...] |
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkMemUtil.cpp | 210 const auto offset = (m_offsetParams ? de::roundUp(m_offsetParams->offset, requiredAlignment) : 0); in allocate() 231 const auto offset = (m_offsetParams ? de::roundUp(m_offsetParams->offset, requiredAlignment) : 0); in allocate()
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deDefs.hpp | 70 template<typename T> inline T roundUp (T x, T y) { DE_ASSERT(y != T(0)); const T mod = x % y; return x + ((mod == T(0)) ? T(0) : (y - mod)); }
|
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/ |
H A D | ANGLEPerfTest.cpp | 491 stepsToRun = rx::roundUp(stepsToRun, getStepAlignment()); in calibrateStepsToRun() 527 stepsToRun = rx::roundUp(stepsToRun, getStepAlignment()); in calibrateStepsToRun()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/ |
H A D | PixelTransfer11.cpp | 140 parametersOut->RowStride = roundUp(parametersOut->PixelsPerRow, alignmentPixels); in setBufferToTextureCopyParams()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | ProgramVk.h | 136 return roundUp(mDefaultUniformBlocks[shaderType].uniformData.size(), alignment); in getDefaultUniformAlignedSize()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/ |
H A D | vktDynamicStateComputeTests.cpp | 101 m_vertexBufferSize = de::roundUp(static_cast<VkDeviceSize>(m_dataSize), getPhysicalDeviceProperties(vki, phyDev).limits.nonCoherentAtomSize); in BindVertexBuffersData() 883 const auto bufferSize = de::roundUp(dataSize, getPhysicalDeviceProperties(vki, phyDev).limits.nonCoherentAtomSize); in iterateTransfer() 1014 const auto outputBufferSize = de::roundUp(static_cast<VkDeviceSize>(dataSize), getPhysicalDeviceProperties(vki, phyDev).limits.nonCoherentAtomSize); in iterateCompute()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/dynamic_state/ |
H A D | vktDynamicStateComputeTests.cpp | 99 m_vertexBufferSize = de::roundUp(static_cast<VkDeviceSize>(m_dataSize), getPhysicalDeviceProperties(vki, phyDev).limits.nonCoherentAtomSize); in BindVertexBuffersData() 868 const auto bufferSize = de::roundUp(dataSize, getPhysicalDeviceProperties(vki, phyDev).limits.nonCoherentAtomSize); in iterateTransfer() 999 const auto outputBufferSize = de::roundUp(static_cast<VkDeviceSize>(dataSize), getPhysicalDeviceProperties(vki, phyDev).limits.nonCoherentAtomSize); in iterateCompute()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
H A D | vktMeshShaderPropertyTestsEXT.cpp | 1097 const auto actualVertices = de::roundUp(m_params.itemCount, meshProperties.meshOutputPerVertexGranularity); in checkSupport() 1105 const auto actualVertices = de::roundUp(1u, meshProperties.meshOutputPerVertexGranularity); in checkSupport() 1106 const auto actualPrimitives = de::roundUp(m_params.itemCount, meshProperties.meshOutputPerPrimitiveGranularity); in checkSupport() 1973 const auto actualPoints = de::roundUp(kMaxPoints, granularity); in getParamsFromContext()
|
H A D | vktMeshShaderConditionalRenderingTestsEXT.cpp | 155 const auto bindOffset = (bindWithOffset ? de::roundUp(kBindOffset, bufferMemReqs.alignment) : 0ull); in ConditionBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
H A D | vktMeshShaderPropertyTestsEXT.cpp | 1097 const auto actualVertices = de::roundUp(m_params.itemCount, meshProperties.meshOutputPerVertexGranularity); in checkSupport() 1105 const auto actualVertices = de::roundUp(1u, meshProperties.meshOutputPerVertexGranularity); in checkSupport() 1106 const auto actualPrimitives = de::roundUp(m_params.itemCount, meshProperties.meshOutputPerPrimitiveGranularity); in checkSupport() 1973 const auto actualPoints = de::roundUp(kMaxPoints, granularity); in getParamsFromContext()
|
H A D | vktMeshShaderConditionalRenderingTestsEXT.cpp | 155 const auto bindOffset = (bindWithOffset ? de::roundUp(kBindOffset, bufferMemReqs.alignment) : 0ull); in ConditionBuffer()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_tracing/ |
H A D | vktRayTracingMiscTests.cpp | 3902 m_resultBufferSize = de::roundUp(m_resultBufferSize, static_cast<deUint32>(sizeof(largestBaseTypeSizeUsed)) ); 5711 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, componentSizeBytes * 2); in setExplicitScalarOffsetBufferOffsets() 5795 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, requiredAlignment * 2); in setExplicitSTD430OffsetBufferOffsets() 5907 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, requiredAlignment); in setSTD430BufferOffsets() 5958 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, componentSizeBytes); in setScalarBufferOffsets() 5986 currentMatrixElementOffset = de::roundUp( nMatrixRows * componentSizeBytes * nMatrixColumn, in setScalarMatrixElementOffsets() 6017 currentMatrixElementOffset = de::roundUp( static_cast<deUint32>(nMatrixRows * componentSizeBytes * nMatrixColumn), in setSTD430MatrixElementOffsets() 8371 const auto missStride = de::roundUp(handleSize + m_testPtr->getShaderRecordSize(ShaderGroups::MISS_GROUP), handleSize); in runTest() 8372 const auto hitStride = de::roundUp(handleSize + m_testPtr->getShaderRecordSize(ShaderGroups::HIT_GROUP), handleSize); in runTest() 8373 const auto callStride = de::roundUp(handleSiz in runTest() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
H A D | vktRayTracingMiscTests.cpp | 3897 m_resultBufferSize = de::roundUp(m_resultBufferSize, static_cast<deUint32>(sizeof(largestBaseTypeSizeUsed)) ); 5706 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, componentSizeBytes * 2); in setExplicitScalarOffsetBufferOffsets() 5790 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, requiredAlignment * 2); in setExplicitSTD430OffsetBufferOffsets() 5902 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, requiredAlignment); in setSTD430BufferOffsets() 5953 bufferProps.bufferOffset = de::roundUp(nBytesConsumed, componentSizeBytes); in setScalarBufferOffsets() 5981 currentMatrixElementOffset = de::roundUp( nMatrixRows * componentSizeBytes * nMatrixColumn, in setScalarMatrixElementOffsets() 6012 currentMatrixElementOffset = de::roundUp( static_cast<deUint32>(nMatrixRows * componentSizeBytes * nMatrixColumn), in setSTD430MatrixElementOffsets() 8361 const auto missStride = de::roundUp(handleSize + m_testPtr->getShaderRecordSize(ShaderGroups::MISS_GROUP), handleSize); in runTest() 8362 const auto hitStride = de::roundUp(handleSize + m_testPtr->getShaderRecordSize(ShaderGroups::HIT_GROUP), handleSize); in runTest() 8363 const auto callStride = de::roundUp(handleSiz in runTest() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | APFloat.cpp | 2755 bool roundUp; 2760 roundUp = false; 2787 roundUp = roundAwayFromZero(rounding_mode, fraction, bits); 2820 if (roundUp) {
|