You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
397 B
20 lines
397 B
#pragma once
|
|
|
|
#include <stddef.h>
|
|
|
|
// provides 8byte-aligned
|
|
// free memory
|
|
void* malloc(size_t size);
|
|
void free(void* p);
|
|
void* realloc(void* ptr, size_t size);
|
|
void heap_init(void);
|
|
|
|
size_t heap_get_n_allocation(void);
|
|
size_t heap_get_size(void);
|
|
void* heap_get_brk(void);
|
|
void heap_print(void);
|
|
void heap_defragment(void);
|
|
|
|
#ifndef NDEBUG
|
|
void malloc_test(void);
|
|
#endif
|
|
|