Home
last modified time | relevance | path

Searched refs:new_size_index (Results 1 – 3 of 3) sorted by relevance

/third_party/weston/xwayland/
Dhash.c217 hash_table_rehash(struct hash_table *ht, unsigned int new_size_index) in hash_table_rehash() argument
222 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()
/third_party/mesa3d/src/util/
Dset.c331 set_rehash(struct set *ht, unsigned new_size_index) in set_rehash() argument
336 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()
Dhash_table.c389 _mesa_hash_table_rehash(struct hash_table *ht, unsigned new_size_index) in _mesa_hash_table_rehash() argument
394 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()