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