Lines Matching refs:size

52     NN_WEAK_SYMBOL void* malloc(size_t size)  in malloc()  argument
54 return s_pSystemHeap->Allocate(size); in malloc()
65 NN_WEAK_SYMBOL void* calloc(size_t num, size_t size) in calloc() argument
67 size_t sum = num * size; in calloc()
78 NN_WEAK_SYMBOL void* realloc(void* p, size_t size) in realloc() argument
83 if( size == 0 ) in realloc()
91 size_t newSize = s_pSystemHeap->ResizeBlock(p, size); in realloc()
99 void* newMem = std::malloc(size); in realloc()
104 std::memcpy(newMem, p, std::min(size, oldSize)); in realloc()
113 return std::malloc(size); in realloc()
120 NN_WEAK_SYMBOL void* operator new (size_t size, const ::std::nothrow_t&) throw() in operator new() argument
122 return std::malloc(size); in operator new()
125 NN_WEAK_SYMBOL void* operator new[] (size_t size, const ::std::nothrow_t&) throw() in operator new[]() argument
127 return operator new(size, ::std::nothrow_t()); in operator new[]()
166 void InitializeAllocator(uptr addr, size_t size) in InitializeAllocator() argument
168 NN_TASSERT_(size >= sizeof(SystemExpHeap)); in InitializeAllocator()
172 …s_pSystemHeap = new (reinterpret_cast<void*>(heapAddr)) SystemExpHeap(headAddr, addr + size - head… in InitializeAllocator()
177 void InitializeAllocator(size_t size) in InitializeAllocator() argument
179 nnosMemoryBlockAllocate(&s_HeapMemoryBlock, size); in InitializeAllocator()
180 NN_TASSERT_(nnosMemoryBlockGetSize(&s_HeapMemoryBlock) == size); in InitializeAllocator()
181 InitializeAllocator(nnosMemoryBlockGetAddress(&s_HeapMemoryBlock), size); in InitializeAllocator()