From 20fad3430c5fa999fd094199f55a6af962993b51 Mon Sep 17 00:00:00 2001 From: Jason Evans Date: Fri, 26 Feb 2016 14:43:39 -0800 Subject: [PATCH] Refactor some bitmap cpp logic. --- include/jemalloc/internal/bitmap.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/jemalloc/internal/bitmap.h b/include/jemalloc/internal/bitmap.h index ee2e7e9d..2594e3a4 100644 --- a/include/jemalloc/internal/bitmap.h +++ b/include/jemalloc/internal/bitmap.h @@ -20,7 +20,7 @@ typedef unsigned long bitmap_t; * force linear search, if we would have to call ffsl more than 2^3 times, use a * tree instead. */ -#if LG_RUN_MAXREGS - LG_BITMAP_GROUP_NBITS > 3 +#if LG_BITMAP_MAXBITS - LG_BITMAP_GROUP_NBITS > 3 # define USE_TREE #endif @@ -78,8 +78,7 @@ typedef unsigned long bitmap_t; #else /* USE_TREE */ -#define BITMAP_GROUPS_MAX \ - (ZU(1) << (LG_RUN_MAXREGS - LG_SIZEOF_BITMAP - LG_SIZEOF_BITMAP)) +#define BITMAP_GROUPS_MAX BITMAP_BITS2GROUPS(BITMAP_MAXBITS) #endif /* USE_TREE */