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