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 << EDATA_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
12typedef struct tsd_binshards_s tsd_binshards_t;
13struct tsd_binshards_s {
14 uint8_t binshard[SC_NBINS];
15};
16
17#endif /* JEMALLOC_INTERNAL_BIN_TYPES_H */
18