ck_ht: Set artificial key length limit if pointer packing is disabled.

ck_pring
Samy Al Bahra 12 years ago
parent 90713046e9
commit ec0d212c04

@ -53,6 +53,8 @@ enum ck_ht_mode {
#define CK_HT_PP #define CK_HT_PP
#define CK_HT_KEY_LENGTH ((sizeof(void *) * 8) - CK_MD_VMA_BITS) #define CK_HT_KEY_LENGTH ((sizeof(void *) * 8) - CK_MD_VMA_BITS)
#define CK_HT_KEY_MASK ((1U << CK_HT_KEY_LENGTH) - 1) #define CK_HT_KEY_MASK ((1U << CK_HT_KEY_LENGTH) - 1)
#else
#define CK_HT_KEY_LENGTH 65535
#endif #endif
struct ck_ht_entry { struct ck_ht_entry {

Loading…
Cancel
Save