Home
last modified time | relevance | path

Searched refs:roundUp (Results 1 - 25 of 48) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/src/Reactor/
H A DExecutableMemory.cpp267 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 DBitSetIterator.h29 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 Dmathutil_unittest.cpp214 // 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 Dmathutil.h1368 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 Dvalidate_decorations.cpp175 // 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 Dvalidate_decorations.cpp171 // 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 Dvalidate_decorations.cpp171 // 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 DvktDrawBufferObjectUtil.cpp65 const auto extraRoom = de::roundUp(allocationOffset, bufferRequirements.alignment); in createAndAlloc()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawBufferObjectUtil.cpp65 const auto extraRoom = de::roundUp(allocationOffset, bufferRequirements.alignment); in createAndAlloc()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DblocklayoutHLSL.cpp165 rx::roundUp<size_t>(encoder.getCurrentOffset(), registerBytes) / registerBytes); in HLSLVariableRegisterCount()
/third_party/decimal.js/
H A Ddecimal.js2947 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 DvkMemUtil.cpp210 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 DdeDefs.hpp70 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 DANGLEPerfTest.cpp491 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 DPixelTransfer11.cpp140 parametersOut->RowStride = roundUp(parametersOut->PixelsPerRow, alignmentPixels); in setBufferToTextureCopyParams()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A DProgramVk.h136 return roundUp(mDefaultUniformBlocks[shaderType].uniformData.size(), alignment); in getDefaultUniformAlignedSize()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/dynamic_state/
H A DvktDynamicStateComputeTests.cpp101 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 DvktDynamicStateComputeTests.cpp99 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 DvktMeshShaderPropertyTestsEXT.cpp1097 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 DvktMeshShaderConditionalRenderingTestsEXT.cpp155 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 DvktMeshShaderPropertyTestsEXT.cpp1097 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 DvktMeshShaderConditionalRenderingTestsEXT.cpp155 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 DvktRayTracingMiscTests.cpp3902 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 DvktRayTracingMiscTests.cpp3897 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 DAPFloat.cpp2755 bool roundUp;
2760 roundUp = false;
2787 roundUp = roundAwayFromZero(rounding_mode, fraction, bits);
2820 if (roundUp) {

Completed in 55 milliseconds

12