CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
DataStructsDefs.h File Reference

Go to the source code of this file.

Namespaces

namespace  CNum::DataStructs
 The data structures used in CNum.
namespace  CNum
 The umbrella namespace from which you can access all modules of CNum.
namespace  CNum::DataStructs::Arena
 A "mini-heap" used for thread local memory allocation.

Typedefs

typedef struct arena CNum::DataStructs::arena_t
typedef struct arena_view CNum::DataStructs::arena_view_t

Functions

arena_tCNum::DataStructs::Arena::arena_init (uint32_t blocks_to_allocate)
 Initialize Arena.
arena_view_t CNum::DataStructs::Arena::arena_malloc (arena_t *arena, size_t bytes, size_t type_size)
 Arena manual allocation with malloc fallback.
void CNum::DataStructs::Arena::arena_clear (arena_t *arena)
 Zero out an arena's memory.
void CNum::DataStructs::Arena::arena_free (arena_t *arena)
 Free all memory associated with an arena.