42 #define __M4RI_ENABLE_MMC 47 #define __M4RI_MMC_NBLOCKS 16 52 #define __M4RI_MMC_THRESHOLD __M4RI_CPU_L3_CACHE 79 size_t total_size = count *
size;
81 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_free(void *condemned, size_t size)
Free the data pointed to by condemned of the given size.
Definition: mmc.c:83
void * m4ri_mmc_malloc(size_t size)
Allocate size bytes.
Definition: mmc.c:42
void m4ri_mmc_cleanup(void)
Cleans up memory block cache.
Definition: mmc.c:125
static void * m4ri_mmc_calloc(size_t count, size_t size)
Allocate an array of count times size zeroed bytes.
Definition: mmc.h:78
void * data
Definition: mmc.h:66
size_t size
Definition: mmc.h:61
Tuple of pointer to allocated memory block and it's size.
Definition: mmc.h:57