diff options
author | David Goldblatt <davidgoldblatt@fb.com> | 2017-03-06 19:40:29 (GMT) |
---|---|---|
committer | David Goldblatt <davidtgoldblatt@gmail.com> | 2017-03-07 02:49:19 (GMT) |
commit | 424e3428b16eef4614bf6786611e35e30983d23f (patch) | |
tree | e0003c25aa13f21eebb5a52027af78ae3672e4a1 /include/jemalloc | |
parent | 84326c566af7d20662ee927c2daef0f63ccd3841 (diff) | |
download | jemalloc-424e3428b16eef4614bf6786611e35e30983d23f.zip jemalloc-424e3428b16eef4614bf6786611e35e30983d23f.tar.gz jemalloc-424e3428b16eef4614bf6786611e35e30983d23f.tar.bz2 |
Make type abbreviations consistent: ssize_t is zd everywhere
Diffstat (limited to 'include/jemalloc')
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal.h.in | 4 | ||||
-rw-r--r-- | include/jemalloc/internal/jemalloc_internal_macros.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/include/jemalloc/internal/jemalloc_internal.h.in b/include/jemalloc/internal/jemalloc_internal.h.in index 09eda5e..8d2ec7d 100644 --- a/include/jemalloc/internal/jemalloc_internal.h.in +++ b/include/jemalloc/internal/jemalloc_internal.h.in @@ -565,7 +565,7 @@ psz2ind(size_t psz) { pszind_t lg_delta = (x < LG_SIZE_CLASS_GROUP + LG_PAGE + 1) ? LG_PAGE : x - LG_SIZE_CLASS_GROUP - 1; - size_t delta_inverse_mask = ZI(-1) << lg_delta; + size_t delta_inverse_mask = ZD(-1) << lg_delta; pszind_t mod = ((((psz-1) & delta_inverse_mask) >> lg_delta)) & ((ZU(1) << LG_SIZE_CLASS_GROUP) - 1); @@ -646,7 +646,7 @@ size2index_compute(size_t size) { szind_t lg_delta = (x < LG_SIZE_CLASS_GROUP + LG_QUANTUM + 1) ? LG_QUANTUM : x - LG_SIZE_CLASS_GROUP - 1; - size_t delta_inverse_mask = ZI(-1) << lg_delta; + size_t delta_inverse_mask = ZD(-1) << lg_delta; szind_t mod = ((((size-1) & delta_inverse_mask) >> lg_delta)) & ((ZU(1) << LG_SIZE_CLASS_GROUP) - 1); diff --git a/include/jemalloc/internal/jemalloc_internal_macros.h b/include/jemalloc/internal/jemalloc_internal_macros.h index 35a7a10..c5dd9b3 100644 --- a/include/jemalloc/internal/jemalloc_internal_macros.h +++ b/include/jemalloc/internal/jemalloc_internal_macros.h @@ -41,14 +41,14 @@ #endif #define ZU(z) ((size_t)z) -#define ZI(z) ((ssize_t)z) +#define ZD(z) ((ssize_t)z) #define QU(q) ((uint64_t)q) -#define QI(q) ((int64_t)q) +#define QD(q) ((int64_t)q) #define KZU(z) ZU(z##ULL) -#define KZI(z) ZI(z##LL) +#define KZD(z) ZD(z##LL) #define KQU(q) QU(q##ULL) -#define KQI(q) QI(q##LL) +#define KQD(q) QI(q##LL) #ifndef __DECONST # define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var)) |