Lines Matching refs:size

64 static unsigned long _dictNextPower(unsigned long size);
162 ht->size = 0; in _dictReset()
204 int dictExpand(dict *d, unsigned long size) in dictExpand() argument
207 unsigned long realsize = _dictNextPower(size); in dictExpand()
211 if (dictIsRehashing(d) || d->ht[0].used > size) in dictExpand()
215 if (realsize == d->ht[0].size) return DICT_ERR; in dictExpand()
218 n.size = realsize; in dictExpand()
254 assert(d->ht[0].size > (unsigned long)d->rehashidx); in dictRehash()
418 if (d->ht[0].size == 0) return DICT_ERR; /* d->ht[0].table is NULL */ in dictGenericDelete()
462 for (i = 0; i < ht->size && ht->used > 0; i++) { in _dictClear()
531 integers[1] = d->ht[0].size; in dictFingerprint()
534 integers[4] = d->ht[1].size; in dictFingerprint()
590 if (iter->index >= (long) ht->size) { in dictNext()
638 h = d->rehashidx + (random() % (d->ht[0].size + in dictGetRandomKey()
639 d->ht[1].size - in dictGetRandomKey()
641 he = (h >= d->ht[0].size) ? d->ht[1].table[h - d->ht[0].size] : in dictGetRandomKey()
724 if (i >= d->ht[1].size) i = d->rehashidx; in dictGetSomeKeys()
727 if (i >= d->ht[j].size) continue; /* Out of range for this table. */ in dictGetSomeKeys()
879 if (t0->size > t1->size) { in dictScan()
932 if (d->ht[0].size == 0) return dictExpand(d, DICT_HT_INITIAL_SIZE); in _dictExpandIfNeeded()
938 if (d->ht[0].used >= d->ht[0].size && in _dictExpandIfNeeded()
940 d->ht[0].used/d->ht[0].size > dict_force_resize_ratio)) in _dictExpandIfNeeded()
948 static unsigned long _dictNextPower(unsigned long size) in _dictNextPower() argument
952 if (size >= LONG_MAX) return LONG_MAX; in _dictNextPower()
954 if (i >= size) in _dictNextPower()
1021 for (i = 0; i < ht->size; i++) { in _dictGetStatsHt()
1052 ht->size, ht->used, slots, maxchainlen, in _dictGetStatsHt()
1061 i, clvector[i], ((float)clvector[i]/ht->size)*100); in _dictGetStatsHt()