]> git.ozlabs.org Git - ccan/blobdiff - ccan/htable/htable.h
htable: reduce size of htable by calculating max every time.
[ccan] / ccan / htable / htable.h
index 28755d617d67b7766d44fe3e5ce93d7956a85d55..bdce920b552eb0e23a5bbe53877a146decf87d81 100644 (file)
@@ -25,7 +25,7 @@ struct htable {
        size_t (*rehash)(const void *elem, void *priv);
        void *priv;
        unsigned int bits;
-       size_t elems, deleted, max, max_with_deleted;
+       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;
@@ -50,7 +50,7 @@ struct htable {
  *     static struct htable ht = HTABLE_INITIALIZER(ht, rehash, NULL);
  */
 #define HTABLE_INITIALIZER(name, rehash, priv)                         \
-       { rehash, priv, 0, 0, 0, 0, 0, -1, 0, 0, &name.perfect_bit }
+       { rehash, priv, 0, 0, 0, -1, 0, 0, &name.perfect_bit }
 
 /**
  * htable_init - initialize an empty hash table.