mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-08-26 00:53:34 +03:00
Header refactoring: Pull size helpers out of jemalloc module.
This commit is contained in:
parent
041e041e1f
commit
8261e581be
28 changed files with 636 additions and 590 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "jemalloc/internal/pages.h"
|
||||
#include "jemalloc/internal/prng.h"
|
||||
#include "jemalloc/internal/ql.h"
|
||||
#include "jemalloc/internal/sz.h"
|
||||
|
||||
static inline void
|
||||
extent_lock(tsdn_t *tsdn, extent_t *extent) {
|
||||
|
|
@ -65,7 +66,7 @@ extent_szind_get(const extent_t *extent) {
|
|||
|
||||
static inline size_t
|
||||
extent_usize_get(const extent_t *extent) {
|
||||
return index2size(extent_szind_get(extent));
|
||||
return sz_index2size(extent_szind_get(extent));
|
||||
}
|
||||
|
||||
static inline size_t
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue