|
|
|
|
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 "memory_common.h"
#include "memory_mutex.h"
#include "memory_tds.h"
Go to the source code of this file.
Namespaces |
namespace | NLMEMORY |
Defines |
#define | NelAlloc(heap, size, category) ((heap).allocate (size, __FILE__, __LINE__, category)) |
| NelAlloc: category can be NULL. More...
|
#define | NelRealloc(heap, size, ptr, category) (heap.reallocate (ptr, size, __FILE__, __LINE__, category)) |
#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 Documentation
#define NelAlloc |
( |
heap, |
|
|
size, |
|
|
category |
|
) |
((heap).allocate (size, __FILE__, __LINE__, category))
|
|
|
NelAlloc: category can be NULL.
Then, category string will be the last pushed category string.
Definition at line 50 of file src/memory/heap_allocator.h. |
#define NelRealloc |
( |
heap, |
|
|
size, |
|
|
ptr, |
|
|
category |
|
) |
(heap.reallocate (ptr, size, __FILE__, __LINE__, category))
|
|
#define NL_ALIGN_SIZE_FOR_SMALLBLOCK |
( |
size |
|
) |
(((size) + SmallBlockGranularity-1) & ~(SmallBlockGranularity-1))
|
|
#define NL_HEAP_NODE_END_SIZE sizeof(CNodeEnd)
|
|
#define NL_SIZE_TO_SMALLBLOCK_INDEX |
( |
size |
|
) |
((size-1)>>SmallBlockGranularityShift)
|
|
#define NL_SMALLBLOCK_COUNT (1+(LastSmallBlock - FirstSmallBlock)/SmallBlockGranularity)
|
|
|
|