|
libcute 0.1
|
#include "collection/bitmap.h"#include "memory/allocator.h"#include <stdbool.h>#include <stddef.h>

Go to the source code of this file.
Classes | |
| struct | cu_GPAllocator |
| struct | cu_GPAllocator_Config |
Macros | |
| #define | CU_GPA_BUCKET_SIZE 4096 |
| #define | CU_GPA_NUM_SMALL_BUCKETS 16 |
| #define | CU_GPA_CANARY 0x9232a6ff85dff10fULL |
Functions | |
| cu_Allocator | cu_Allocator_GPAllocator (cu_GPAllocator *alloc, cu_GPAllocator_Config config) |
| void | cu_GPAllocator_destroy (cu_GPAllocator *alloc) |
General purpose allocator.
| #define CU_GPA_BUCKET_SIZE 4096 |
default page size for buckets
| #define CU_GPA_CANARY 0x9232a6ff85dff10fULL |
bucket canary value
| #define CU_GPA_NUM_SMALL_BUCKETS 16 |
number of size classes
| cu_Allocator cu_Allocator_GPAllocator | ( | cu_GPAllocator * | alloc, |
| cu_GPAllocator_Config | config | ||
| ) |
Create a GP allocator using the given configuration.

| void cu_GPAllocator_destroy | ( | cu_GPAllocator * | alloc | ) |
Release all buckets and large allocations.