Searched refs:new_size_index (Results 1 – 3 of 3) sorted by relevance
217 hash_table_rehash(struct hash_table *ht, unsigned int new_size_index) in hash_table_rehash() argument222 if (new_size_index >= ARRAY_SIZE(hash_sizes)) in hash_table_rehash()225 table = calloc(hash_sizes[new_size_index].size, sizeof(*ht->table)); in hash_table_rehash()232 ht->size_index = new_size_index; in hash_table_rehash()
331 set_rehash(struct set *ht, unsigned new_size_index) in set_rehash() argument336 if (ht->size_index == new_size_index && ht->deleted_entries == ht->max_entries) { in set_rehash()342 if (new_size_index >= ARRAY_SIZE(hash_sizes)) in set_rehash()346 hash_sizes[new_size_index].size); in set_rehash()353 ht->size_index = new_size_index; in set_rehash()
389 _mesa_hash_table_rehash(struct hash_table *ht, unsigned new_size_index) in _mesa_hash_table_rehash() argument394 if (ht->size_index == new_size_index && ht->deleted_entries == ht->max_entries) { in _mesa_hash_table_rehash()400 if (new_size_index >= ARRAY_SIZE(hash_sizes)) in _mesa_hash_table_rehash()404 hash_sizes[new_size_index].size); in _mesa_hash_table_rehash()411 ht->size_index = new_size_index; in _mesa_hash_table_rehash()