From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- .../nel/src_2memory_2heap__allocator_8h.html | 275 +++++++++++++++++++++ 1 file changed, 275 insertions(+) create mode 100644 docs/doxygen/nel/src_2memory_2heap__allocator_8h.html (limited to 'docs/doxygen/nel/src_2memory_2heap__allocator_8h.html') diff --git a/docs/doxygen/nel/src_2memory_2heap__allocator_8h.html b/docs/doxygen/nel/src_2memory_2heap__allocator_8h.html new file mode 100644 index 00000000..82938d2b --- /dev/null +++ b/docs/doxygen/nel/src_2memory_2heap__allocator_8h.html @@ -0,0 +1,275 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# 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 "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 NelAllocheap,
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 NelReallocheap,
size,
ptr,
category      (heap.reallocate (ptr, size, __FILE__, __LINE__, category)) +
+
+ + + + + +
+   + + +

+

+Todo:
+ NelRealloc: category can be NULL. Then, category string will be the last pushed category string.
+

+Definition at line 53 of file src/memory/heap_allocator.h.

+

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

+ +

+Definition at line 492 of file src/memory/heap_allocator.h.

+

+ + + + +
+ + +
#define NL_HEAP_NODE_END_SIZE   sizeof(CNodeEnd) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 318 of file src/memory/heap_allocator.h.

+

+ + + + +
+ + + + + + + +
#define NL_SIZE_TO_SMALLBLOCK_INDEXsize      ((size-1)>>SmallBlockGranularityShift) +
+
+ + + + + +
+   + + +

+ +

+Definition at line 491 of file src/memory/heap_allocator.h.

+

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

+ +

+Definition at line 490 of file src/memory/heap_allocator.h.

+ + + +
                                                                                                                                                                    +

+ + -- cgit v1.2.1