![]() |
AKOS
v1.0.0
Documentation
|
Fixed-size heap allocator implementation. More...
Go to the source code of this file.
Macros | |
| #define | ALIGNMENT ((size_t)4U) |
| #define | MEM_ALIGN(size) |
| #define | MIN_SIZE_TO_SPLIT ((size_t)8U) |
| #define | SIZE_OF_BLOCK_HEADER ((size_t)MEM_ALIGN(sizeof(mem_blk_header_t))) |
Functions | |
| void * | akos_memory_malloc (size_t size) |
| Allocate block from heap. | |
| void | akos_memory_free (void *p_addr) |
| Free previously allocated heap block. | |
| #define MEM_ALIGN | ( | size | ) |
| #define SIZE_OF_BLOCK_HEADER ((size_t)MEM_ALIGN(sizeof(mem_blk_header_t))) |
| void akos_memory_free | ( | void * | p_addr | ) |
Free previously allocated heap block.
Free previously allocated memory block.
| p_addr | Pointer returned by akos_memory_malloc. |