mariadb/newbrt/primes.h
Bradley C. Kuszmaul 701339ea1d Use prime numbers for the hash table sizes
git-svn-id: file:///svn/tokudb@126 c7de825b-a66e-492c-adef-691d508d4ae1
2007-08-13 21:53:19 +00:00

4 lines
128 B
C

/* Return the smallest prime >= 2^(idx+1)
* Only works for idx<30 */
int get_prime (unsigned int idx);
void test_primes(void);