| 184 | } |
| 185 | |
| 186 | void *htable_next_(const struct htable *ht, struct htable_iter *i) |
| 187 | { |
| 188 | for (i->off++; i->off < (size_t)1 << ht->bits; i->off++) { |
| 189 | if (entry_is_valid(ht->table[i->off])) |
| 190 | return get_raw_ptr(ht, ht->table[i->off]); |
| 191 | } |
| 192 | return NULL; |
| 193 | } |
| 194 | |
| 195 | void *htable_prev_(const struct htable *ht, struct htable_iter *i) |
| 196 | { |
no test coverage detected