| 77 | } |
| 78 | |
| 79 | void htable_init(struct htable *ht, |
| 80 | size_t (*rehash)(const void *elem, void *priv), void *priv) |
| 81 | { |
| 82 | struct htable empty = HTABLE_INITIALIZER(empty, NULL, NULL); |
| 83 | *ht = empty; |
| 84 | ht->rehash = rehash; |
| 85 | ht->priv = priv; |
| 86 | ht->table = &ht->common_bits; |
| 87 | } |
| 88 | |
| 89 | /* Fill to 87.5% */ |
| 90 | static inline size_t ht_max(const struct htable *ht) |
no outgoing calls