Home | History | Annotate | Download | only in common

Lines Matching refs:PRIMES

61  * PRIMES table, so that when the primeIndex is incremented or
70 /* This is a list of non-consecutive primes chosen such that
71 * PRIMES[i+1] ~ 2*PRIMES[i]. (Currently, the ratio ranges from 1.81
79 static const int32_t PRIMES[] = {
86 #define PRIMES_LENGTH (sizeof(PRIMES) / sizeof(PRIMES[0]))
89 /* These ratios are tuned to the PRIMES array such that a resize
220 hash->length = PRIMES[primeIndex];
552 /* Find the smallest index i for which PRIMES[i] >= size. */
554 while (i<(PRIMES_LENGTH-1) && PRIMES[i]<size) {