Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ move_to_next_block()

char * stan::math::stack_alloc::move_to_next_block ( size_t  len,
size_t  alignment 
)
inlineprivate

Moves us to the next block of memory, allocating that block if necessary, and allocates len bytes of memory within that block, aligned to alignment bytes.

Parameters
lenNumber of bytes to allocate.
alignmentAlignment in bytes, a power of two.
Returns
A pointer to the allocated memory.

Definition at line 107 of file stack_alloc.hpp.