Lines Matching defs:count
107 #define HASH_BKT_CAPACITY_THRESH 10U /* expand when bucket count reaches */
422 if ((head)->hh.tbl->buckets[_bkt_i].count != _bkt_count) { \
423 HASH_OOPS("invalid bucket count %u, actual %u\n", \
424 (head)->hh.tbl->buckets[_bkt_i].count, _bkt_count); \
428 HASH_OOPS("invalid hh item count %u, actual %u\n", \
431 /* traverse hh in app order; check next/prev integrity, count */ \
446 HASH_OOPS("invalid app item count %u, actual %u\n", \
738 head.count++; \
743 if ((head.count >= ((head.expand_mult+1U) * HASH_BKT_CAPACITY_THRESH)) \
751 (head).count--; \
769 * (item count) in each bucket is reduced. Thus by expanding buckets
775 * maximum chain length based on the *new* (doubled) bucket count.
813 if (++(_he_newbkt->count) > tbl->ideal_chain_maxlen) { \
815 _he_newbkt->expand_mult = _he_newbkt->count / \
1002 /* obtain a count of items in the hash */
1008 unsigned count;