xref: /freebsd/contrib/jemalloc/include/jemalloc/internal/bin_types.h (revision c5ad81420c495d1d5de04209b0ec4fcb435c322c)
1 #ifndef JEMALLOC_INTERNAL_BIN_TYPES_H
2 #define JEMALLOC_INTERNAL_BIN_TYPES_H
3 
4 #include "jemalloc/internal/sc.h"
5 
6 #define BIN_SHARDS_MAX (1 << EXTENT_BITS_BINSHARD_WIDTH)
7 #define N_BIN_SHARDS_DEFAULT 1
8 
9 /* Used in TSD static initializer only. Real init in arena_bind(). */
10 #define TSD_BINSHARDS_ZERO_INITIALIZER {{UINT8_MAX}}
11 
12 typedef struct tsd_binshards_s tsd_binshards_t;
13 struct tsd_binshards_s {
14 	uint8_t binshard[SC_NBINS];
15 };
16 
17 #endif /* JEMALLOC_INTERNAL_BIN_TYPES_H */
18