summaryrefslogtreecommitdiff
path: root/deps/jemalloc/include/jemalloc/internal/base_inlines.h
blob: aec0e2e1e1c56ab527c495c9a3c7ab187646a063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef JEMALLOC_INTERNAL_BASE_INLINES_H
#define JEMALLOC_INTERNAL_BASE_INLINES_H

static inline unsigned
base_ind_get(const base_t *base) {
	return base->ind;
}

static inline bool
metadata_thp_enabled(void) {
	return (opt_metadata_thp != metadata_thp_disabled);
}
#endif /* JEMALLOC_INTERNAL_BASE_INLINES_H */