xref: /netbsd-src/external/bsd/jemalloc.old/include/jemalloc/internal/base_inlines.h (revision 8e33eff89e26cf71871ead62f0d5063e1313c33a)
1*8e33eff8Schristos #ifndef JEMALLOC_INTERNAL_BASE_INLINES_H
2*8e33eff8Schristos #define JEMALLOC_INTERNAL_BASE_INLINES_H
3*8e33eff8Schristos 
4*8e33eff8Schristos static inline unsigned
5*8e33eff8Schristos base_ind_get(const base_t *base) {
6*8e33eff8Schristos 	return base->ind;
7*8e33eff8Schristos }
8*8e33eff8Schristos 
9*8e33eff8Schristos static inline bool
10*8e33eff8Schristos metadata_thp_enabled(void) {
11*8e33eff8Schristos 	return (opt_metadata_thp != metadata_thp_disabled);
12*8e33eff8Schristos }
13*8e33eff8Schristos #endif /* JEMALLOC_INTERNAL_BASE_INLINES_H */
14