Home | History | Annotate | Download | only in src

Lines Matching refs:nums

196 static int computesizes (int nums[], int *narray) {
203 if (nums[i] > 0) {
204 a += nums[i];
218 static int countint (const TValue *key, int *nums) {
221 nums[luaO_ceillog2(k)]++; /* count as such */
229 static int numusearray (const Table *t, int *nums) {
232 int ause = 0; /* summation of `nums' */
247 nums[lg] += lc;
254 static int numusehash (const Table *t, int *nums, int *pnasize) {
256 int ause = 0; /* summation of `nums' */
261 ause += countint(gkey(n), nums);
345 int nums[MAXBITS+1]; /* nums[i] = number of keys with 2^(i-1) < k <= 2^i */
348 for (i=0; i<=MAXBITS; i++) nums[i] = 0; /* reset counts */
349 nasize = numusearray(t, nums); /* count keys in array part */
351 totaluse += numusehash(t, nums, &nasize); /* count keys in hash part */
353 nasize += countint(ek, nums);
356 na = computesizes(nums, &nasize);