1 /* include/jemalloc/jemalloc_defs.h. Generated from jemalloc_defs.h.in by configure. */ 2 /* Defined if __attribute__((...)) syntax is supported. */ 3 #define JEMALLOC_HAVE_ATTR 4 5 /* Defined if alloc_size attribute is supported. */ 6 #define JEMALLOC_HAVE_ATTR_ALLOC_SIZE 7 8 /* Defined if format(gnu_printf, ...) attribute is supported. */ 9 /* #undef JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF */ 10 11 /* Defined if format(printf, ...) attribute is supported. */ 12 #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF 13 14 /* 15 * Define overrides for non-standard allocator-related functions if they are 16 * present on the system. 17 */ 18 #define JEMALLOC_OVERRIDE_MEMALIGN 19 #define JEMALLOC_OVERRIDE_VALLOC 20 21 /* 22 * At least Linux omits the "const" in: 23 * 24 * size_t malloc_usable_size(const void *ptr); 25 * 26 * Match the operating system's prototype. 27 */ 28 #define JEMALLOC_USABLE_SIZE_CONST const 29 30 /* 31 * If defined, specify throw() for the public function prototypes when compiling 32 * with C++. The only justification for this is to match the prototypes that 33 * glibc defines. 34 */ 35 /* #undef JEMALLOC_USE_CXX_THROW */ 36 37 #ifdef _MSC_VER 38 # ifdef _WIN64 39 # define LG_SIZEOF_PTR_WIN 3 40 # else 41 # define LG_SIZEOF_PTR_WIN 2 42 # endif 43 #endif 44 45 /* sizeof(void *) == 2^LG_SIZEOF_PTR. */ 46 #if defined(__LP64__) 47 #define LG_SIZEOF_PTR 3 48 #else 49 #define LG_SIZEOF_PTR 2 50 #endif 51