20#define BYTE_ALIGN(x) (((x + 15) / 16) * 16)
u32_t uint32_t
Definition stdint.h:13
s32_t int32_t
Definition stdint.h:12
unsigned long phys_addr_t
Definition types.h:58
void * srealloc(void *p, uint32_t num_bytes)
Reallocate a block of memory with the specified new size.
Definition smalloc.c:58
void sfree(void *p)
Free the memory block pointed to by the specified pointer.
Definition smalloc.c:105
int32_t smalloc_init(uint32_t p_heap_head, uint32_t n_heap_size)
Initialize the simple malloc library with the specified heap parameters.
Definition smalloc.c:13
void * smalloc(uint32_t num_bytes)
Allocate a block of memory from the heap with the specified size.
Definition smalloc.c:22
uint32_t size
Definition smalloc.h:15
uint32_t o_size
Definition smalloc.h:16
struct alloc_struct_t * next
Definition smalloc.h:17
phys_addr_t address
Definition smalloc.h:14