Searched refs:MIN_BUCKETS (Results 1 – 1 of 1) sorted by relevance
10 #define MIN_BUCKETS 64 macro148 hm->buckets = calloc(MIN_BUCKETS, sizeof(hm->buckets[0])); in iwhmap_create()156 hm->buckets_mask = MIN_BUCKETS - 1; in iwhmap_create()367 if ((hm->buckets_mask > MIN_BUCKETS - 1) && (hm->count < hm->buckets_mask / 2)) { in _entry_remove()561 if (_n_buckets(hm) > MIN_BUCKETS) { in iwhmap_clear()562 bucket_t *buckets_new = realloc(hm->buckets, sizeof(buckets_new[0]) * MIN_BUCKETS); in iwhmap_clear()564 memset(buckets_new, 0, sizeof(buckets_new[0]) * MIN_BUCKETS); in iwhmap_clear()566 hm->buckets_mask = MIN_BUCKETS - 1; in iwhmap_clear()