From d25c3e69e9b0cb9d947e98845b9e3a14ce58e350 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 16 Feb 2018 17:45:09 -0800 Subject: [PATCH] [set] Readjust parameters --- src/hb-set-private.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index 0c73d32dc..55a529195 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -177,9 +177,8 @@ struct hb_set_t return 0; } - typedef uint32_t elt_t; - static const unsigned int ELT_BITS = sizeof (elt_t) * 8; - static const unsigned int PAGE_BITS = ELT_BITS * ELT_BITS; /* 1024. Use to tune. */ + typedef unsigned long long elt_t; + static const unsigned int PAGE_BITS = 1024; static_assert ((PAGE_BITS & ((PAGE_BITS) - 1)) == 0, ""); #if 0 && HAVE_VECTOR_SIZE @@ -192,6 +191,7 @@ struct hb_set_t vector_t v; + static const unsigned int ELT_BITS = sizeof (elt_t) * 8; static const unsigned int ELT_MASK = ELT_BITS - 1; static const unsigned int BITS = sizeof (vector_t) * 8; static const unsigned int MASK = BITS - 1;