if (!entry_is_valid(ht->table[i]))
continue;
if (hash_bucket(ht, ht->rehash(get_raw_ptr(ht, ht->table[i]),
- ht->priv)) == i)
+ ht->priv)) == i) {
+ assert((ht->table[i] & ht->perfect_bit)
+ == ht->perfect_bit);
placed_perfect++;
+ }
}
return placed_perfect;
}
fflush(stdout);
gettimeofday(&start, NULL);
for (i = 0; i < num; i++) {
- unsigned int n = num * 6 + i * 9;
+ unsigned int n = num * (5 + 9) + i * 9;
if (htable_obj_get(ht, &n))
abort();
}