Home
last modified time | relevance | path

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

/systemd-251/src/basic/
Dhashmap.c1071 unsigned old_n_buckets, new_n_buckets, n_rehashed, new_n_entries; in resize_buckets() local
1100 old_n_buckets = n_buckets(h); in resize_buckets()
1102 if (_likely_(new_n_buckets <= old_n_buckets)) in resize_buckets()
1118 old_n_buckets * (hi->entry_size + sizeof(dib_raw_t))); in resize_buckets()
1134 old_dibs = (dib_raw_t*)((uint8_t*) new_storage + hi->entry_size * old_n_buckets); in resize_buckets()
1143 for (idx = 0; idx < old_n_buckets; idx++) { in resize_buckets()
1150 memzero(bucket_at(h, old_n_buckets), in resize_buckets()
1151 (n_buckets(h) - old_n_buckets) * hi->entry_size); in resize_buckets()
1154 memset(&new_dibs[old_n_buckets], DIB_RAW_INIT, in resize_buckets()
1155 (n_buckets(h) - old_n_buckets) * sizeof(dib_raw_t)); in resize_buckets()
[all …]