Searched refs:new_buckets (Results 1 – 4 of 4) sorted by relevance
354 struct links_entry *le, **new_buckets; in linkchk() local374 new_buckets = calloc(new_size, sizeof(struct links_entry *)); in linkchk()377 if (new_buckets == NULL && free_list != NULL) { in linkchk()383 new_buckets = calloc(new_size, sizeof(new_buckets[0])); in linkchk()386 if (new_buckets == NULL) { in linkchk()399 if (new_buckets[hash] != NULL) in linkchk()400 new_buckets[hash]->previous = in linkchk()402 le->next = new_buckets[hash]; in linkchk()404 new_buckets[hash] = le; in linkchk()408 buckets = new_buckets; in linkchk()
408 struct links_entry *le, **new_buckets; in grow_hash() local416 new_buckets = calloc(new_size, sizeof(struct links_entry *)); in grow_hash()418 if (new_buckets == NULL) in grow_hash()430 if (new_buckets[bucket] != NULL) in grow_hash()431 new_buckets[bucket]->previous = le; in grow_hash()432 le->next = new_buckets[bucket]; in grow_hash()434 new_buckets[bucket] = le; in grow_hash()438 res->buckets = new_buckets; in grow_hash()
268 ht_elt **new_buckets; in HT_expand() local272 new_buckets = xmalloc(n2 * sizeof *new_buckets); in HT_expand()274 new_buckets[u] = NULL; in HT_expand()287 e->next = new_buckets[v]; in HT_expand()288 new_buckets[v] = e; in HT_expand()292 ht->buckets = new_buckets; in HT_expand()
1737 int new_buckets = 0; in config_sched() local1764 new_buckets = a.sch->buckets; in config_sched()1895 a.sch->buckets = new_buckets; in config_sched()