Header refactoring: move bit_util.h out of the catchall

This commit is contained in:
David Goldblatt 2017-04-11 12:57:18 -07:00 committed by David Goldblatt
parent 22366518b7
commit 0b00ffe55f
5 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,8 @@
#ifndef JEMALLOC_INTERNAL_BITMAP_INLINES_H
#define JEMALLOC_INTERNAL_BITMAP_INLINES_H
#include "jemalloc/internal/bit_util.h"
#ifndef JEMALLOC_ENABLE_INLINE
bool bitmap_full(bitmap_t *bitmap, const bitmap_info_t *binfo);
bool bitmap_get(bitmap_t *bitmap, const bitmap_info_t *binfo, size_t bit);

View File

@ -41,7 +41,6 @@
/******************************************************************************/
#include "jemalloc/internal/assert.h"
#include "jemalloc/internal/bit_util.h"
#include "jemalloc/internal/malloc_io.h"
#include "jemalloc/internal/util.h"

View File

@ -2,6 +2,7 @@
#define JEMALLOC_INTERNAL_INLINES_A_H
#include "jemalloc/internal/atomic.h"
#include "jemalloc/internal/bit_util.h"
#ifndef JEMALLOC_ENABLE_INLINE
pszind_t psz2ind(size_t psz);

View File

@ -2,6 +2,7 @@
#define JEMALLOC_INTERNAL_PRNG_INLINES_H
#include "jemalloc/internal/atomic.h"
#include "jemalloc/internal/bit_util.h"
#ifndef JEMALLOC_ENABLE_INLINE
uint32_t prng_state_next_u32(uint32_t state);

View File

@ -1,5 +1,7 @@
#include "test/jemalloc_test.h"
#include "jemalloc/internal/bit_util.h"
#define TEST_POW2_CEIL(t, suf, pri) do { \
unsigned i, pow2; \
t x; \