Lines Matching refs:alignBytes
136 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()
199 DE_ASSERT(deIsAlignedPtr(ptr, alignBytes)); in deAlignedRealloc()
204 void* const newPtr = deAlignedMalloc(numBytes, alignBytes); in deAlignedRealloc()
228 return deAlignedMalloc(numBytes, alignBytes); in deAlignedRealloc()