xref: /src/lib/libc/stdlib/malloc/jemalloc/include/jemalloc/jemalloc_defs.h (revision c43cad87172039ccf38172129c79755ea79e6102)
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_arg(...) attribute is supported. */
9 #define JEMALLOC_HAVE_ATTR_FORMAT_ARG
10 
11 /* Defined if format(gnu_printf, ...) attribute is supported. */
12 #define JEMALLOC_HAVE_ATTR_FORMAT_GNU_PRINTF
13 
14 /* Defined if format(printf, ...) attribute is supported. */
15 #define JEMALLOC_HAVE_ATTR_FORMAT_PRINTF
16 
17 /* Defined if fallthrough attribute is supported. */
18 #define JEMALLOC_HAVE_ATTR_FALLTHROUGH
19 
20 /* Defined if cold attribute is supported. */
21 #define JEMALLOC_HAVE_ATTR_COLD
22 
23 /*
24  * Define overrides for non-standard allocator-related functions if they are
25  * present on the system.
26  */
27 #define JEMALLOC_OVERRIDE_MEMALIGN
28 #define JEMALLOC_OVERRIDE_VALLOC
29 
30 /*
31  * At least Linux omits the "const" in:
32  *
33  *   size_t malloc_usable_size(const void *ptr);
34  *
35  * Match the operating system's prototype.
36  */
37 #define JEMALLOC_USABLE_SIZE_CONST const
38 
39 /*
40  * If defined, specify throw() for the public function prototypes when compiling
41  * with C++.  The only justification for this is to match the prototypes that
42  * glibc defines.
43  */
44 /* #undef JEMALLOC_USE_CXX_THROW */
45 
46 #ifdef _MSC_VER
47 #  ifdef _WIN64
48 #    define LG_SIZEOF_PTR_WIN 3
49 #  else
50 #    define LG_SIZEOF_PTR_WIN 2
51 #  endif
52 #endif
53 
54 /* sizeof(void *) == 2^LG_SIZEOF_PTR. */
55 #define LG_SIZEOF_PTR 3
56