This commit is contained in:
2026-04-20 21:53:28 +08:00
parent a4f2c8eb89
commit d7e1cb62ee
19 changed files with 2154 additions and 15 deletions

View File

@@ -2,7 +2,11 @@
#include <clks/string.h>
#include <clks/types.h>
#define CLKS_HEAP_ARENA_SIZE (1024ULL * 1024ULL)
#ifndef CLKS_CFG_HEAP_ARENA_SIZE
#define CLKS_CFG_HEAP_ARENA_SIZE (64ULL * 1024ULL * 1024ULL)
#endif
#define CLKS_HEAP_ARENA_SIZE CLKS_CFG_HEAP_ARENA_SIZE
#define CLKS_HEAP_ALIGN 16ULL
#define CLKS_HEAP_MAGIC 0x434C454F4E4F534FULL
@@ -173,4 +177,4 @@ struct clks_heap_stats clks_heap_get_stats(void) {
stats.free_count = clks_heap_free_count;
return stats;
}
}