43#define __M4RI_MMC_NBLOCKS 16
48#define __M4RI_MMC_THRESHOLD __M4RI_CPU_L3_CACHE
75 size_t total_size = count * size;
77 memset((
char *)ret, 0, total_size);
struct _mm_block mmb_t
Tuple of pointer to allocated memory block and it's size.
void * m4ri_mmc_malloc(size_t size)
Allocate size bytes.
Definition mmc.c:44
void m4ri_mmc_free(void *condemned, size_t size)
Free the data pointed to by condemned of the given size.
Definition mmc.c:85
void m4ri_mmc_cleanup(void)
Cleans up memory block cache.
Definition mmc.c:126
static void * m4ri_mmc_calloc(size_t count, size_t size)
Allocate an array of count times size zeroed bytes.
Definition mmc.h:74
Tuple of pointer to allocated memory block and it's size.
Definition mmc.h:53
size_t size
Definition mmc.h:57
void * data
Definition mmc.h:62