Lines Matching full:buckets
58 ((_Py_hashtable_entry_t *)_Py_SLIST_HEAD(&(HT)->buckets[BUCKET]))
105 /* makes sure the real size of the buckets array is a power of 2 */
123 /* buckets */ in _Py_hashtable_size()
193 _Py_slist_remove(&ht->buckets[index], (_Py_slist_item_t *)previous, in _Py_hashtable_steal()
242 _Py_slist_prepend(&ht->buckets[index], (_Py_slist_item_t*)entry); in _Py_hashtable_set()
287 size_t buckets_size = new_size * sizeof(ht->buckets[0]); in hashtable_rehash()
296 _Py_hashtable_entry_t *entry = BUCKETS_HEAD(ht->buckets[bucket]); in hashtable_rehash()
308 ht->alloc.free(ht->buckets); in hashtable_rehash()
310 ht->buckets = new_buckets; in hashtable_rehash()
339 size_t buckets_size = ht->nbuckets * sizeof(ht->buckets[0]); in _Py_hashtable_new_full()
340 ht->buckets = alloc.malloc(buckets_size); in _Py_hashtable_new_full()
341 if (ht->buckets == NULL) { in _Py_hashtable_new_full()
345 memset(ht->buckets, 0, buckets_size); in _Py_hashtable_new_full()
394 _Py_slist_init(&ht->buckets[i]); in _Py_hashtable_clear()
415 ht->alloc.free(ht->buckets); in _Py_hashtable_destroy()