SyTen

◆ le_malloc()

void * syten::le_malloc ( std::size_t const  size,
std::size_t const  alignment = 64 
)

Allocates a region of heap memory at least size bytes large, aligned to alignment boundary in a special pool designed for eternal small objects (e.g. reps).

Parameters
sizeminimal number of bytes to allocate
alignmentalignment requirement
Returns
a pointer p s.t. p % alignment == 0 and p[i] is valid for all i > -1 ∧ i < size

References l_malloc(), syten::EternalMalloc::next_multiple(), syten::EternalMalloc::region_default_size, and syten::EternalMalloc::regions.

Referenced by syten::EternalAllocator< Type >::allocate(), syten::DynArray< Type >::initNew(), and syten::DynArray< Type >::initTrivial().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: