Lines Matching refs:PRIMES
60 * PRIMES table, so that when the primeIndex is incremented or
69 /* This is a list of non-consecutive primes chosen such that
70 * PRIMES[i+1] ~ 2*PRIMES[i]. (Currently, the ratio ranges from 1.81
78 static const int32_t PRIMES[] = {
85 #define PRIMES_LENGTH (sizeof(PRIMES) / sizeof(PRIMES[0]))
88 /* These ratios are tuned to the PRIMES array such that a resize
219 hash->length = PRIMES[primeIndex];
551 /* Find the smallest index i for which PRIMES[i] >= size. */
553 while (i<(PRIMES_LENGTH-1) && PRIMES[i]<size) {