diff options
Diffstat (limited to 'tinyalloc.h')
| -rw-r--r-- | tinyalloc.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/tinyalloc.h b/tinyalloc.h index 997dc74..6a76d2a 100644 --- a/tinyalloc.h +++ b/tinyalloc.h @@ -1,30 +1,5 @@ #include <stdbool.h> #include <stddef.h> -#include <stdint.h> - -#ifndef TA_ALIGN -#define TA_ALIGN 8 -#endif - -#ifndef TA_BASE -#define TA_BASE 0x400 -#endif - -#ifndef TA_HEAP_START -#define TA_HEAP_START (TA_BASE + sizeof(Heap)) -#endif - -#ifndef TA_HEAP_LIMIT -#define TA_HEAP_LIMIT (1 << 24) -#endif - -#ifndef TA_HEAP_BLOCKS -#define TA_HEAP_BLOCKS 256 -#endif - -#ifndef TA_SPLIT_THRESH -#define TA_SPLIT_THRESH 16 -#endif bool ta_init(); void *ta_alloc(size_t num); @@ -33,5 +8,5 @@ bool ta_free(void *ptr); size_t ta_num_free(); size_t ta_num_used(); -size_t ta_num_avail(); +size_t ta_num_fresh(); bool ta_check(); |
