mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
wip: increase commit mask resolution
This commit is contained in:
parent
c17878d1a7
commit
49c75a3157
6 changed files with 255 additions and 127 deletions
|
@ -39,12 +39,12 @@ static size_t use_one_size = 0; // use single object size of `N * s
|
|||
|
||||
// #define USE_STD_MALLOC
|
||||
#ifdef USE_STD_MALLOC
|
||||
#define custom_calloc(n,s) calloc(n,s)
|
||||
#define custom_calloc(n,s) malloc(n*s)
|
||||
#define custom_realloc(p,s) realloc(p,s)
|
||||
#define custom_free(p) free(p)
|
||||
#else
|
||||
#include <mimalloc.h>
|
||||
#define custom_calloc(n,s) mi_calloc(n,s)
|
||||
#define custom_calloc(n,s) mi_malloc(n*s)
|
||||
#define custom_realloc(p,s) mi_realloc(p,s)
|
||||
#define custom_free(p) mi_free(p)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue