X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fhtable%2Fhtable.h;h=938b43afc89ce5a6603c45761da17d26b748475e;hp=bdce920b552eb0e23a5bbe53877a146decf87d81;hb=d615e534e870a911f11b7b88021242220ea053bf;hpb=9e92552b1b2a1b631bde1c379b9f2950725b1245 diff --git a/ccan/htable/htable.h b/ccan/htable/htable.h index bdce920b..938b43af 100644 --- a/ccan/htable/htable.h +++ b/ccan/htable/htable.h @@ -24,11 +24,10 @@ struct htable { size_t (*rehash)(const void *elem, void *priv); void *priv; - unsigned int bits; + unsigned int bits, perfect_bitnum; size_t elems, deleted; /* These are the bits which are the same in all pointers. */ uintptr_t common_mask, common_bits; - uintptr_t perfect_bit; uintptr_t *table; }; @@ -50,7 +49,7 @@ struct htable { * static struct htable ht = HTABLE_INITIALIZER(ht, rehash, NULL); */ #define HTABLE_INITIALIZER(name, rehash, priv) \ - { rehash, priv, 0, 0, 0, -1, 0, 0, &name.perfect_bit } + { rehash, priv, 0, 0, 0, 0, -1, 0, &name.common_bits } /** * htable_init - initialize an empty hash table.