Searched refs:twotoi (Results 1 - 2 of 2) sorted by relevance

/freebsd-13-stable/sys/contrib/openzfs/module/lua/
H A Dltable.c198 int twotoi; /* 2^i */ local
202 for (i = 0, twotoi = 1; twotoi/2 < *narray; i++, twotoi *= 2) {
205 if (a > twotoi/2) { /* more than half elements present? */
206 n = twotoi; /* optimal size (till now) */
/freebsd-13-stable/contrib/lua/src/
H A Dltable.c359 ** 'twotoi > 0' in the for loop stops the loop if 'twotoi' overflows.)
363 unsigned int twotoi; /* 2^i (candidate for optimal size) */ local
368 for (i = 0, twotoi = 1;
369 twotoi > 0 && *pna > twotoi / 2;
370 i++, twotoi *= 2) {
372 if (a > twotoi/2) { /* more than half elements present? */
373 optimal = twotoi; /* optimal size (till now) */

Completed in 73 milliseconds