Searched refs:alignBytes (Results 1 – 5 of 5) sorted by relevance
/third_party/vk-gl-cts/framework/delibs/debase/ |
D | deMemory.c | 140 void* deAlignedMalloc (size_t numBytes, size_t alignBytes) in deAlignedMalloc() argument 144 const size_t ptrAlignedAlign = deAlignSize(alignBytes, sizeof(void*)); in deAlignedMalloc() 147 DE_ASSERT(deIsPowerOfTwoSize(alignBytes) && deIsPowerOfTwoSize(ptrAlignedAlign / sizeof(void*))); in deAlignedMalloc() 161 DE_ASSERT(deIsPowerOfTwoSize(alignBytes)); in deAlignedMalloc() 163 return _aligned_malloc(numBytes, alignBytes); in deAlignedMalloc() 166 void* const basePtr = deMalloc(numBytes + alignBytes + sizeof(AlignedAllocHeader)); in deAlignedMalloc() 168 DE_ASSERT(deIsPowerOfTwoSize(alignBytes)); in deAlignedMalloc() 172 … alignedPtr = deAlignPtr((void*)((deUintptr)basePtr + sizeof(AlignedAllocHeader)), alignBytes); in deAlignedMalloc() 187 void* deAlignedRealloc (void* ptr, size_t numBytes, size_t alignBytes) in deAlignedRealloc() argument 190 return _aligned_realloc(ptr, numBytes, alignBytes); in deAlignedRealloc() [all …]
|
D | deMemory.h | 40 void* deAlignedMalloc (size_t numBytes, size_t alignBytes); 41 void* deAlignedRealloc(void* ptr, size_t numBytes, size_t alignBytes);
|
/third_party/vk-gl-cts/framework/delibs/depool/ |
D | deMemPool.c | 426 DE_INLINE void* deMemPool_allocInternal (deMemPool* pool, size_t numBytes, deUint32 alignBytes) in deMemPool_allocInternal() argument 442 void* ptr = deAlignedMalloc(numBytes, alignBytes); in deMemPool_allocInternal() 460 DE_ASSERT(deIsPowerOfTwo32((int)alignBytes)); in deMemPool_allocInternal() 463 void* alignedPtr = deAlignPtr(curPagePtr, alignBytes); in deMemPool_allocInternal() 469 int maxAlignPadding = deMax32(0, ((int)alignBytes)-MEM_PAGE_BASE_ALIGN); in deMemPool_allocInternal() 482 alignedPtr = deAlignPtr(curPagePtr, alignBytes); in deMemPool_allocInternal() 517 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes) in deMemPool_alignedAlloc() argument 522 DE_ASSERT(deIsPowerOfTwo32((int)alignBytes)); in deMemPool_alignedAlloc() 523 ptr = deMemPool_allocInternal(pool, numBytes, alignBytes); in deMemPool_alignedAlloc() 524 DE_ASSERT(deIsAlignedPtr(ptr, alignBytes)); in deMemPool_alignedAlloc()
|
D | deMemPool.h | 73 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes);
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | deMemPool.hpp | 52 void* alignedAlloc (deUintptr numBytes, deUint32 alignBytes); 96 inline void* MemPool::alignedAlloc (deUintptr numBytes, deUint32 alignBytes) in alignedAlloc() argument 100 void* ptr = deMemPool_alignedAlloc(m_pool, (int)numBytes, alignBytes); in alignedAlloc()
|