Lines Matching refs:nums
197 static int computesizes (int nums[], int *narray) {
204 if (nums[i] > 0) {
205 a += nums[i];
219 static int countint (const TValue *key, int *nums) {
222 nums[luaO_ceillog2(k)]++; /* count as such */
230 static int numusearray (const Table *t, int *nums) {
233 int ause = 0; /* summation of `nums' */
248 nums[lg] += lc;
255 static int numusehash (const Table *t, int *nums, int *pnasize) {
257 int ause = 0; /* summation of `nums' */
262 ause += countint(gkey(n), nums);
346 int nums[MAXBITS+1]; /* nums[i] = number of keys with 2^(i-1) < k <= 2^i */
349 for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */
350 nasize = numusearray(t, nums); /* count keys in array part */
352 totaluse += numusehash(t, nums, &nasize); /* count keys in hash part */
354 nasize += countint(ek, nums);
357 na = computesizes(nums, &nasize);