X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/blobdiff_plain/ad7871609881e73855d0b04da49b486cd93efca7..ed554bc5e4201344d7eaad78263566e79428759c:/usr/src/games/primes/primes.h diff --git a/usr/src/games/primes/primes.h b/usr/src/games/primes/primes.h index b72a6f9730..611c86d4fc 100644 --- a/usr/src/games/primes/primes.h +++ b/usr/src/games/primes/primes.h @@ -33,24 +33,20 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)primes.h 8.1 (Berkeley) 5/31/93 + * @(#)primes.h 8.2 (Berkeley) 3/1/94 */ /* * primes - generate a table of primes between two values * - * By: Landon Curt Noll chongo@toad.com, ...!{sun,tolsoft}!hoptoad!chongo + * By: Landon Curt Noll chongo@toad.com, ...!{sun,tolsoft}!hoptoad!chongo * - * chongo /\oo/\ + * chongo /\oo/\ */ /* ubig is the type that holds a large unsigned value */ -typedef unsigned long ubig; /* must be >=32 bit unsigned value */ +typedef unsigned long ubig; /* must be >=32 bit unsigned value */ +#define BIG ULONG_MAX /* largest value will sieve */ -/* - * sieve parameters - */ -#define BIG ((ubig)0xffffffff) /* highest value we will sieve */ -#define SEMIBIG ((ubig)0x7fffffff) /* highest signed value */ -#define NEG_SEMIBIG ((ubig)0x80000000) /* lowest signed value */ -#define TABSIZE 256*1024 /* bytes in sieve table (must be > 3*5*7*11) */ +/* bytes in sieve table (must be > 3*5*7*11) */ +#define TABSIZE 256*1024