ck_ht: Fix ck_ht_entry_key for some non-x86_64 platforms.

Previously we would clear top 16 bits of pointer, fix this behavior
to only apply this behavior on x86_64.
ck_pring
Samy Al Bahra 13 years ago
parent 9d4541d703
commit 1d02940c83

@ -122,7 +122,11 @@ CK_CC_INLINE static void *
ck_ht_entry_key(ck_ht_entry_t *entry)
{
#ifdef __x86_64__
return (void *)(entry->key & (((uintptr_t)1 << 48) - 1));
#else
return (void *)entry->key;
#endif
}
CK_CC_INLINE static uint16_t

Loading…
Cancel
Save