Lines Matching refs:capacity
183 PRUint32 capacity)
194 if (!PL_DHashTableInit(table, ops, data, entrySize, capacity)) {
218 PRUint32 entrySize, PRUint32 capacity)
236 if (capacity < PL_DHASH_MIN_SIZE)
237 capacity = PL_DHASH_MIN_SIZE;
238 log2 = PR_CeilingLog2(capacity);
239 capacity = PR_BIT(log2);
240 if (capacity >= PL_DHASH_SIZE_LIMIT)
248 nbytes = capacity * entrySize;
646 PRUint32 i, capacity, entrySize;
668 capacity = PL_DHASH_TABLE_SIZE(table);
669 entryLimit = entryAddr + capacity * entrySize;
701 (table->removedCount >= capacity >> 2 ||
702 (capacity > PL_DHASH_MIN_SIZE &&
703 table->entryCount <= MIN_LOAD(table, capacity)))) {
705 capacity = table->entryCount;
706 capacity += capacity >> 1;
707 if (capacity < PL_DHASH_MIN_SIZE)
708 capacity = PL_DHASH_MIN_SIZE;
710 PR_CeilingLog2(capacity)