view src/lib/primes.h @ 903:fd8888f6f037 HEAD

Naming style changes, finally got tired of most of the typedefs. Also the previous enum -> macro change reverted so that we don't use the highest bit anymore, that's incompatible with old indexes so they will be rebuilt.
author Timo Sirainen <tss@iki.fi>
date Sun, 05 Jan 2003 15:09:51 +0200
parents e399e33d033d
children e4eb71ae8e96
line wrap: on
line source

#ifndef __PRIMES_H
#define __PRIMES_H

/* Returns a prime close to specified number, or the number itself if it's
   a prime. Note that the returned value may be smaller than requested! */
unsigned int primes_closest(unsigned int num);

#endif