From ec0d212c04e45427f89f34f390e62f22cf8c8876 Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sat, 15 Sep 2012 14:59:46 -0400 Subject: [PATCH] ck_ht: Set artificial key length limit if pointer packing is disabled. --- include/ck_ht.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/ck_ht.h b/include/ck_ht.h index 7664ab7..5c9c37a 100644 --- a/include/ck_ht.h +++ b/include/ck_ht.h @@ -53,6 +53,8 @@ enum ck_ht_mode { #define CK_HT_PP #define CK_HT_KEY_LENGTH ((sizeof(void *) * 8) - CK_MD_VMA_BITS) #define CK_HT_KEY_MASK ((1U << CK_HT_KEY_LENGTH) - 1) +#else +#define CK_HT_KEY_LENGTH 65535 #endif struct ck_ht_entry {