/external/skia/src/gpu/ |
D | GrBlockAllocator.cpp | 212 int allocSize; in addBlock() local 217 allocSize = fHead.fPrev->fSize; in addBlock() 242 allocSize = maxSize; in addBlock() 244 allocSize = std::min(alignAllocSize(std::max(minimumSize, sizeIncrement * nextN1)), in addBlock() 250 allocSize = alignAllocSize(minimumSize); in addBlock() 255 mem = operator new(allocSize); in addBlock() 257 fTail->fNext = new (mem) Block(fTail, allocSize); in addBlock()
|
D | GrResourceProvider.cpp | 472 size_t allocSize = intendedType == GrGpuBufferType::kUniform ? std::max(size, MIN_UNIFORM_SIZE) in createBuffer() local 474 size_t ceilPow2 = GrNextSizePow2(allocSize); in createBuffer() 477 allocSize = (allocSize <= mid) ? mid : ceilPow2; in createBuffer() 480 GrGpuBuffer::ComputeScratchKeyForDynamicBuffer(allocSize, intendedType, &key); in createBuffer() 485 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
/external/eigen/Eigen/src/SparseCore/ |
D | AmbiVector.h | 76 Index allocSize = (size * sizeof(ListEl) + sizeof(Scalar) - 1)/sizeof(Scalar); in reallocate() local 77 m_allocatedElements = convert_index((allocSize*sizeof(Scalar))/sizeof(ListEl)); in reallocate() 78 m_buffer = new Scalar[allocSize]; in reallocate() 94 Index allocSize = m_allocatedElements * sizeof(ListEl); in reallocateSparse() local 95 allocSize = (allocSize + sizeof(Scalar) - 1)/sizeof(Scalar); in reallocateSparse() 96 Scalar* newBuffer = new Scalar[allocSize]; in reallocateSparse()
|
/external/oj-libjdwp/src/share/back/ |
D | SDE.c | 323 size_t allocSize; in assureLineTableSize() local 330 allocSize = new_lineTableSize * (int)sizeof(LineTableRecord); in assureLineTableSize() 331 new_lineTable = jvmtiAllocate((jint)allocSize); in assureLineTableSize() 347 size_t allocSize; in assureFileTableSize() local 354 allocSize = new_fileTableSize * (int)sizeof(FileTableRecord); in assureFileTableSize() 355 new_fileTable = jvmtiAllocate((jint)allocSize); in assureFileTableSize() 371 size_t allocSize; in assureStratumTableSize() local 378 allocSize = new_stratumTableSize * (int)sizeof(StratumTableRecord); in assureStratumTableSize() 379 new_stratumTable = jvmtiAllocate((jint)allocSize); in assureStratumTableSize()
|
/external/skia/bench/ |
D | TriangulatorBench.cpp | 76 size_t allocSize = eagerCount * stride; in lock() local 77 if (allocSize > fVertexAllocSize) { in lock() 78 fVertexData.reset(allocSize); in lock()
|
/external/skqp/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 53 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in GrDrawAtlasOp() local 54 installedGeo.fVerts.reset(allocSize); in GrDrawAtlasOp() 147 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local 148 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws() 149 vertPtr += allocSize; in onPrepareDraws()
|
/external/OpenCL-CTS/test_conformance/api/ |
D | test_api_consistency.cpp | 34 const size_t allocSize = 16; in test_consistency_svm() local 49 clCreateBuffer(context, CL_MEM_READ_WRITE, allocSize, NULL, &error); in test_consistency_svm() 71 void* ptr0 = clSVMAlloc(context, CL_MEM_READ_WRITE, allocSize, 0); in test_consistency_svm() 72 void* ptr1 = clSVMAlloc(context, CL_MEM_READ_WRITE, allocSize, 0); in test_consistency_svm() 88 allocSize, 0, NULL, NULL); in test_consistency_svm() 94 error = clEnqueueSVMMemcpy(queue, CL_TRUE, bogus1, bogus0, allocSize, 0, in test_consistency_svm() 101 error = clEnqueueSVMMap(queue, CL_TRUE, CL_MAP_READ, bogus1, allocSize, in test_consistency_svm() 547 const size_t allocSize = 16; in test_consistency_non_uniform_work_group() local 564 clCreateBuffer(context, CL_MEM_READ_WRITE, allocSize, NULL, &error); in test_consistency_non_uniform_work_group()
|
/external/angle/third_party/vulkan_memory_allocator/src/ |
D | Tests.cpp | 135 const AllocationSize& allocSize = AllocationSizes[i]; in CalcAvgResourceSize() local 136 if(allocSize.BufferSizeMax > 0) in CalcAvgResourceSize() 137 … sizeSum += (allocSize.BufferSizeMin + allocSize.BufferSizeMax) / 2 * allocSize.Probability; in CalcAvgResourceSize() 140 … const VkDeviceSize avgDimension = (allocSize.ImageSizeMin + allocSize.ImageSizeMax) / 2; in CalcAvgResourceSize() 141 sizeSum += avgDimension * avgDimension * 4 * allocSize.Probability; in CalcAvgResourceSize() 143 probabilitySum += allocSize.Probability; in CalcAvgResourceSize() 334 [](uint32_t sum, const AllocationSize& allocSize) { in MainTest() argument 335 return sum + allocSize.Probability; in MainTest() 463 const AllocationSize& allocSize = config.AllocationSizes[allocSizeIndex]; in MainTest() local 464 if(allocSize.BufferSizeMax > 0) in MainTest() [all …]
|
D | vk_mem_alloc.h | 6244 VkDeviceSize allocSize, 6266 VkDeviceSize allocSize, 6325 VkDeviceSize allocSize, 6345 VkDeviceSize allocSize, 6377 VkDeviceSize allocSize, 6503 VkDeviceSize allocSize, 6523 VkDeviceSize allocSize, 6579 VkDeviceSize allocSize, 6589 VkDeviceSize allocSize, 6633 VkDeviceSize allocSize, [all …]
|
/external/skia/src/gpu/ops/ |
D | GrDrawAtlasOp.cpp | 130 int allocSize = static_cast<int>(4 * vertexStride * spriteCount); in DrawAtlasOp() local 131 installedGeo.fVerts.reset(allocSize); in DrawAtlasOp() 239 size_t allocSize = args.fVerts.count(); in onPrepareDraws() local 240 memcpy(vertPtr, args.fVerts.begin(), allocSize); in onPrepareDraws() 241 vertPtr += allocSize; in onPrepareDraws()
|
/external/OpenCL-CTS/test_common/harness/ |
D | imageHelpers.cpp | 1106 void escape_inf_nan_values(char *data, size_t allocSize) in escape_inf_nan_values() argument 1110 for (size_t i = 0; i<allocSize>> 2; i++) in escape_inf_nan_values() 1118 for (size_t i = 0; i<allocSize>> 1; i++) in escape_inf_nan_values() 1127 size_t allocSize = get_image_size(imageInfo); in generate_random_image_data() local 1132 allocSize = compute_mipmapped_image_size(*imageInfo); in generate_random_image_data() 1138 size_t mapSize = ((allocSize + 4095L) & -4096L) + 8192; in generate_random_image_data() 1143 data = (char *)(data_end - (intptr_t)allocSize); in generate_random_image_data() 1147 P.reset(data, map, mapSize, allocSize); in generate_random_image_data() 1151 data = (char *)malloc(allocSize); in generate_random_image_data() 1152 P.reset(data, NULL, 0, allocSize); in generate_random_image_data() [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | StringMapEntry.h | 97 size_t allocSize = sizeof(StringMapEntry) + keyLength + 1; in Create() local 101 static_cast<StringMapEntry *>(allocator.Allocate(allocSize, alignment)); in Create()
|
/external/icu/icu4c/source/common/ |
D | unisetspan.cpp | 268 int32_t allocSize; in UnicodeSetStringSpan() local 271 allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() 273 allocSize=stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 276 allocSize+=stringsLength*4+utf8Length; in UnicodeSetStringSpan() 279 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 282 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 409 int32_t allocSize=stringsLength*(4+1+1+1+1)+utf8Length; in UnicodeSetStringSpan() local 410 if(allocSize<=(int32_t)sizeof(staticLengths)) { in UnicodeSetStringSpan() 413 utf8Lengths=(int32_t *)uprv_malloc(allocSize); in UnicodeSetStringSpan() 422 uprv_memcpy(utf8Lengths, otherStringSpan.utf8Lengths, allocSize); in UnicodeSetStringSpan()
|
/external/deqp/external/vulkancts/modules/vulkan/robustness/ |
D | vktRobustBufferAccessWithVariablePointersTests.cpp | 82 VkDeviceSize allocSize; member 120 data.allocSize = bufferMemoryReqs.size; in createTestBuffer() 122 data.maxAccessRange = deMinu64(data.allocSize, deMinu64(bufferParams.size, accessRange)); in createTestBuffer() 1395 …log << tcu::TestLog::Message << "input buffer - alloc size: " << m_inBufferAccess.allocSize << tc… in AccessInstance() 1397 …log << tcu::TestLog::Message << "output buffer - alloc size: " << m_outBufferAccess.allocSize << t… in AccessInstance() 1512 DE_ASSERT(offsetInBytes < m_inBufferAccess.allocSize); in isExpectedValueFromInBuffer() 1583 m_outBufferAccess.allocSize, // VkDeviceSize size; in iterate() 1609 …for (VkDeviceSize offsetInBytes = 0; offsetInBytes < m_outBufferAccess.allocSize; offsetInBytes +=… in verifyResult() 1612 …alueSize = static_cast<size_t>(deMinu64(elementSize, (m_outBufferAccess.allocSize - offsetInBytes)… in verifyResult() 1619 …&& (isReadAccess || !isValueWithinBufferOrZero(inDataPtr, m_inBufferAccess.allocSize, outValuePtr,… in verifyResult() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiGetMemoryCommitment.cpp | 390 VkDeviceSize allocSize[arrayLength]; in iterate() local 398 allocSize[i] = rand() % 1000 + 1; in iterate() 409 allocSize[i], // VkDeviceSize allocationSize in iterate() 421 if(pCommittedMemoryInBytes > allocSize[i]) in iterate()
|
/external/skqp/src/gpu/ |
D | GrResourceProvider.cpp | 381 size_t allocSize = SkTMax(MIN_SIZE, GrNextSizePow2(size)); in createBuffer() local 384 GrBuffer::ComputeScratchKeyForDynamicVBO(allocSize, intendedType, &key); in createBuffer() 392 this->cache()->findAndRefScratchResource(key, allocSize, scratchFlags))); in createBuffer() 394 buffer = this->gpu()->createBuffer(allocSize, intendedType, kDynamic_GrAccessPattern); in createBuffer()
|
/external/brotli/java/org/brotli/enc/ |
D | PreparedDictionaryGenerator.java | 129 int allocSize = part0 + part1 + part2 + part3 + sourceSize; in generate() local 130 ByteBuffer flat = ByteBuffer.allocateDirect(allocSize); in generate()
|
/external/llvm-project/mlir/lib/Dialect/Linalg/Transforms/ |
D | Promotion.cpp | 117 Value allocSize = one; in defaultAllocBufferCallBack() local 119 allocSize = folded_std_muli(folder, allocSize, size.value()); in defaultAllocBufferCallBack() 120 Value buffer = allocBuffer(options, viewType.getElementType(), allocSize, in defaultAllocBufferCallBack()
|
/external/vulkan-validation-layers/layers/ |
D | vk_mem_alloc.h | 5230 VkDeviceSize allocSize, 5252 VkDeviceSize allocSize, 5315 VkDeviceSize allocSize, 5335 VkDeviceSize allocSize, 5370 VkDeviceSize allocSize, 5496 VkDeviceSize allocSize, 5516 VkDeviceSize allocSize, 5606 VkDeviceSize allocSize, 5626 VkDeviceSize allocSize, 5699 uint32_t AllocSizeToLevel(VkDeviceSize allocSize) const; [all …]
|
/external/skia/third_party/vulkanmemoryallocator/include/ |
D | vk_mem_alloc.h | 6225 VkDeviceSize allocSize, 6247 VkDeviceSize allocSize, 6306 VkDeviceSize allocSize, 6326 VkDeviceSize allocSize, 6358 VkDeviceSize allocSize, 6484 VkDeviceSize allocSize, 6504 VkDeviceSize allocSize, 6560 VkDeviceSize allocSize, 6570 VkDeviceSize allocSize, 6614 VkDeviceSize allocSize, [all …]
|
/external/swiftshader/third_party/marl/src/ |
D | memory.cpp | 184 size_t allocSize = size + alignment + sizeof(void*); in alignedMalloc() local 185 auto allocation = malloc(allocSize); in alignedMalloc()
|
/external/OpenCL-CTS/test_conformance/spir/ |
D | datagen.h | 311 size_t allocSize = numPixels * alignment ; 332 pBuffer = align_malloc(allocSize, alignment); 340 fillBuffer((cl_char *)pBuffer, allocSize ); 343 memcpy(pBuffer, refArg->getBuffer(), allocSize ); 346 … return new KernelArgImage(context, argInfo, pBuffer, allocSize, mem_flags, m_format, m_desc);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | UnicodeSetStringSpan.java | 142 int allocSize; in UnicodeSetStringSpan() local 145 allocSize = stringsLength * (2); in UnicodeSetStringSpan() 147 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 149 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | UnicodeSetStringSpan.java | 138 int allocSize; in UnicodeSetStringSpan() local 141 allocSize = stringsLength * (2); in UnicodeSetStringSpan() 143 allocSize = stringsLength; // One set of span lengths. in UnicodeSetStringSpan() 145 spanLengths = new short[allocSize]; in UnicodeSetStringSpan()
|
/external/skqp/src/core/ |
D | SkStrike.cpp | 150 size_t allocSize = glyph->allocImage(&fAlloc); in initializeImage() local 153 SkASSERT(size == allocSize); in initializeImage() 154 memcpy(glyph->fImage, const_cast<const void*>(data), allocSize); in initializeImage()
|