From a5fb24ab61c40b77aa50c5ca5d2e5c6402e3c00a Mon Sep 17 00:00:00 2001 From: Samy Al Bahra Date: Sun, 9 Sep 2012 16:53:55 -0400 Subject: [PATCH] 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. --- include/ck_ht.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/ck_ht.h b/include/ck_ht.h index 7fa6db7..bf5ff9a 100644 --- a/include/ck_ht.h +++ b/include/ck_ht.h @@ -57,13 +57,14 @@ struct ck_ht_entry { #ifdef CK_HT_PP uintptr_t key; uintptr_t value CK_CC_PACKED; +} CK_CC_ALIGN(16); #else uintptr_t key; uintptr_t value; uint64_t key_length; uint64_t hash; +} CK_CC_ALIGN(32); #endif -} CK_CC_ALIGNED; typedef struct ck_ht_entry ck_ht_entry_t; /*