30 #include <cugar/basic/types.h> 31 #include <cugar/basic/numbers.h> 56 uint8*
byte_alloc(
const uint64 sz,
const uint64 alignment = 1u)
58 const uint64 base =
round_i(size, alignment);
69 T*
alloc(
const uint64 sz,
const uint64 alignment =
sizeof(T))
71 return (T*)
byte_alloc(sz *
sizeof(T), alignment);
CUGAR_HOST_DEVICE memory_arena(uint8 *_ptr=NULL)
Definition: memory_arena.h:49
CUGAR_HOST_DEVICE L round_i(const L x, const R y)
Definition: numbers.h:198
CUGAR_HOST_DEVICE T * alloc(const uint64 sz, const uint64 alignment=sizeof(T))
Definition: memory_arena.h:69
CUGAR_HOST_DEVICE uint8 * byte_alloc(const uint64 sz, const uint64 alignment=1u)
Definition: memory_arena.h:56
Define a vector_view POD type and plain_view() for std::vector.
Definition: diff.h:38
Definition: memory_arena.h:44