Home
last modified time | relevance | path

Searched refs:alignBytes (Results 1 – 5 of 5) sorted by relevance

/external/deqp/framework/delibs/debase/
DdeMemory.c136 void* deAlignedMalloc (size_t numBytes, size_t alignBytes) in deAlignedMalloc() argument
140 const size_t ptrAlignedAlign = deAlignSize(alignBytes, sizeof(void*)); in deAlignedMalloc()
143 DE_ASSERT(deIsPowerOfTwoSize(alignBytes) && deIsPowerOfTwoSize(ptrAlignedAlign / sizeof(void*))); in deAlignedMalloc()
157 DE_ASSERT(deIsPowerOfTwoSize(alignBytes)); in deAlignedMalloc()
159 return _aligned_malloc(numBytes, alignBytes); in deAlignedMalloc()
162 void* const basePtr = deMalloc(numBytes + alignBytes + sizeof(AlignedAllocHeader)); in deAlignedMalloc()
164 DE_ASSERT(deIsPowerOfTwoSize(alignBytes)); in deAlignedMalloc()
168 … alignedPtr = deAlignPtr((void*)((deUintptr)basePtr + sizeof(AlignedAllocHeader)), alignBytes); in deAlignedMalloc()
183 void* deAlignedRealloc (void* ptr, size_t numBytes, size_t alignBytes) in deAlignedRealloc() argument
186 return _aligned_realloc(ptr, numBytes, alignBytes); in deAlignedRealloc()
[all …]
DdeMemory.h40 void* deAlignedMalloc (size_t numBytes, size_t alignBytes);
41 void* deAlignedRealloc(void* ptr, size_t numBytes, size_t alignBytes);
/external/deqp/framework/delibs/depool/
DdeMemPool.c426 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()
DdeMemPool.h73 void* deMemPool_alignedAlloc (deMemPool* pool, size_t numBytes, deUint32 alignBytes);
/external/deqp/framework/delibs/decpp/
DdeMemPool.hpp52 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()