ck_bag: USE CK_BAG_KEY_LENGTH

ck_pring
Abel Mathew 12 years ago
parent 9ff3c2d017
commit ec02b2f356

@ -114,7 +114,8 @@ struct ck_bag_iterator {
typedef struct ck_bag_iterator ck_bag_iterator_t;
#ifdef CK_BAG_PP
#define CK_BAG_BLOCK_ENTRIES_MASK ((uintptr_t)0xFFFF << CK_MD_VMA_BITS)
#define CK_BAG_KEY_LENGTH ((sizeof(void *) * 8) - CK_MD_VMA_BITS)
#define CK_BAG_BLOCK_ENTRIES_MASK ((uintptr_t)(1U << CK_BAG_KEY_LENGTH) << CK_MD_VMA_BITS)
#endif
CK_CC_INLINE static struct ck_bag_block *

Loading…
Cancel
Save