# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

heap_allocator.h File Reference

#include "nel/misc/types_nl.h"
#include "nel/misc/mutex.h"
#include "nel/misc/tds.h"
#include <vector>

Go to the source code of this file.

Namespaces

namespace  NLMISC

Defines

#define NL_HEAP_NODE_END_SIZE   sizeof(CNodeEnd)
#define NL_SMALLBLOCK_COUNT   (1+(LastSmallBlock - FirstSmallBlock)/SmallBlockGranularity)
#define NL_SIZE_TO_SMALLBLOCK_INDEX(size)   ((size-1)>>SmallBlockGranularityShift)
#define NL_ALIGN_SIZE_FOR_SMALLBLOCK(size)   (((size) + SmallBlockGranularity-1) & ~(SmallBlockGranularity-1))
#define NelAlloc(heap, size, category)   ((heap).allocate (size, __FILE__, __LINE__, category))
#define NelRealloc(heap, size, ptr, category)   (heap.allocate (ptr, size, __FILE__, __LINE__, category))


Define Documentation

#define NelAlloc heap,
size,
category       ((heap).allocate (size, __FILE__, __LINE__, category))
 

Definition at line 496 of file include/nel/misc/heap_allocator.h.

Referenced by NLMISC::CHeapAllocator::allocate, NLMEMORY::CHeapAllocator::debugGetSBDebugInfoSize, and NLMISC::CHeapAllocator::debugPushCategoryString.

#define NelRealloc heap,
size,
ptr,
category       (heap.allocate (ptr, size, __FILE__, __LINE__, category))
 

Definition at line 499 of file include/nel/misc/heap_allocator.h.

#define NL_ALIGN_SIZE_FOR_SMALLBLOCK size       (((size) + SmallBlockGranularity-1) & ~(SmallBlockGranularity-1))
 

Definition at line 449 of file include/nel/misc/heap_allocator.h.

Referenced by NLMISC::CHeapAllocator::allocate.

#define NL_HEAP_NODE_END_SIZE   sizeof(CNodeEnd)
 

Definition at line 275 of file include/nel/misc/heap_allocator.h.

#define NL_SIZE_TO_SMALLBLOCK_INDEX size       ((size-1)>>SmallBlockGranularityShift)
 

Definition at line 448 of file include/nel/misc/heap_allocator.h.

Referenced by NLMISC::CHeapAllocator::allocate, NLMISC::CHeapAllocator::debugStatisticsReport, and NLMISC::CHeapAllocator::free.

#define NL_SMALLBLOCK_COUNT   (1+(LastSmallBlock - FirstSmallBlock)/SmallBlockGranularity)
 

Definition at line 447 of file include/nel/misc/heap_allocator.h.