From 34b7165fde9622afe75037a2c8862f53269f10bb Mon Sep 17 00:00:00 2001 From: "David T. Goldblatt" Date: Mon, 17 Feb 2020 11:48:42 -0800 Subject: [PATCH] Put szind_t, pszind_t in sz.h. --- include/jemalloc/internal/cache_bin.h | 1 + include/jemalloc/internal/jemalloc_internal_types.h | 6 ------ include/jemalloc/internal/sz.h | 6 ++++++ 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/jemalloc/internal/cache_bin.h b/include/jemalloc/internal/cache_bin.h index 38b8e328..60feb15f 100644 --- a/include/jemalloc/internal/cache_bin.h +++ b/include/jemalloc/internal/cache_bin.h @@ -2,6 +2,7 @@ #define JEMALLOC_INTERNAL_CACHE_BIN_H #include "jemalloc/internal/ql.h" +#include "jemalloc/internal/sz.h" /* * The cache_bins are the mechanism that the tcache and the arena use to diff --git a/include/jemalloc/internal/jemalloc_internal_types.h b/include/jemalloc/internal/jemalloc_internal_types.h index 324a4b13..d8da4dee 100644 --- a/include/jemalloc/internal/jemalloc_internal_types.h +++ b/include/jemalloc/internal/jemalloc_internal_types.h @@ -3,12 +3,6 @@ #include "jemalloc/internal/quantum.h" -/* Page size index type. */ -typedef unsigned pszind_t; - -/* Size class index type. */ -typedef unsigned szind_t; - /* Processor / core id type. */ typedef int malloc_cpuid_t; diff --git a/include/jemalloc/internal/sz.h b/include/jemalloc/internal/sz.h index 73fb0a4c..b0941169 100644 --- a/include/jemalloc/internal/sz.h +++ b/include/jemalloc/internal/sz.h @@ -22,6 +22,12 @@ * size that would result from such an allocation. */ +/* Page size index type. */ +typedef unsigned pszind_t; + +/* Size class index type. */ +typedef unsigned szind_t; + /* * sz_pind2sz_tab encodes the same information as could be computed by * sz_pind2sz_compute().