20 lines
541 B
C
20 lines
541 B
C
#ifndef AXL_MEMORY_H
|
|
#define AXL_MEMORY_H
|
|
|
|
#ifndef AXL_HEAP_SIZE
|
|
#define AXL_HEAP_SIZE 1024 * 1024 * 16
|
|
#endif
|
|
|
|
#include "axl_types.h"
|
|
|
|
void axl_init(void);
|
|
void* axl_malloc(u32 size);
|
|
void* axl_realloc(void* ptr, u32 size);
|
|
void* axl_memset(void* ptr, i8 c, u32 n);
|
|
void* axl_memcpy(void* dst, const void* src, u32 count);
|
|
i32 axl_memcmp(const void* s1, const void* s2, u32 n);
|
|
void* axl_memchr(const void* ptr, u8 value, u32 n);
|
|
void* axl_memmove(void* dst, const void* src, u32 n);
|
|
void axl_free(void* ptr);
|
|
|
|
#endif
|