ROOT-Sim core
3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
|
A Buddy System implementation. More...
Macros | |
#define | is_power_of_2(i) (!((i) & ((i)-1))) |
Functions | |
void | buddy_init (struct buddy_state *self) |
void * | buddy_malloc (struct buddy_state *self, uint_fast8_t req_blks_exp) |
uint_fast32_t | buddy_free (struct buddy_state *self, void *ptr) |
struct buddy_realloc_res | buddy_best_effort_realloc (struct buddy_state *self, void *ptr, size_t req_size) |
void | buddy_dirty_mark (struct buddy_state *self, const void *ptr, size_t s) |
A Buddy System implementation.