ck_ht: Hard-code ck_ht_entry alignment.

Even though there is a re-write in progress, this issue must
be fixed. The CK_CC_ALIGNED attribute was never added.
ck_pring
Samy Al Bahra 12 years ago
parent 375a9eb816
commit a5fb24ab61

@ -57,13 +57,14 @@ struct ck_ht_entry {
#ifdef CK_HT_PP #ifdef CK_HT_PP
uintptr_t key; uintptr_t key;
uintptr_t value CK_CC_PACKED; uintptr_t value CK_CC_PACKED;
} CK_CC_ALIGN(16);
#else #else
uintptr_t key; uintptr_t key;
uintptr_t value; uintptr_t value;
uint64_t key_length; uint64_t key_length;
uint64_t hash; uint64_t hash;
} CK_CC_ALIGN(32);
#endif #endif
} CK_CC_ALIGNED;
typedef struct ck_ht_entry ck_ht_entry_t; typedef struct ck_ht_entry ck_ht_entry_t;
/* /*

Loading…
Cancel
Save