sxnext_prime.c File Reference

#include "sxversion.h"
#include "sxcommon.h"
Include dependency graph for sxnext_prime.c:

Go to the source code of this file.

Defines

#define primes_size   (sizeof (primes) / sizeof (SXINT))

Functions

SXINT sxlast_bit (SXINT nb)
SXINT sxnext_prime (SXINT germe)

Variables

static SXINT primes [] = {1, 2, 5, 11, 17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411, 32771, 65539, 131101, 262217, 524309, 1048583, 2097169}
char WHAT_SXNEXT_PRIME [] = "@(#)SYNTAX - $Id: sxnext_prime.c 1411 2008-06-25 11:56:32Z sagot $" WHAT_DEBUG
static SXINT LASTBIT [] = {0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4}

Define Documentation

#define primes_size   (sizeof (primes) / sizeof (SXINT))

Definition at line 23 of file sxnext_prime.c.

Referenced by sxnext_prime().


Function Documentation

SXINT sxlast_bit ( SXINT  nb  ) 
SXINT sxnext_prime ( SXINT  germe  ) 

Variable Documentation

SXINT LASTBIT[] = {0, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4} [static]

Definition at line 27 of file sxnext_prime.c.

Referenced by sxlast_bit().

SXINT primes[] = {1, 2, 5, 11, 17, 37, 67, 131, 257, 521, 1031, 2053, 4099, 8209, 16411, 32771, 65539, 131101, 262217, 524309, 1048583, 2097169} [static]

Definition at line 22 of file sxnext_prime.c.

Referenced by sxnext_prime().

char WHAT_SXNEXT_PRIME[] = "@(#)SYNTAX - $Id: sxnext_prime.c 1411 2008-06-25 11:56:32Z sagot $" WHAT_DEBUG

Definition at line 25 of file sxnext_prime.c.


Generated on Wed Apr 21 16:39:38 2010 for syntax-6.0b7 by  doxygen 1.6.1