first_primes.h File Reference

Precomputed small primes. More...

#include <inttypes.h>
#include "array.h"
#include "tifa_config.h"

Go to the source code of this file.

Defines

#define _TIFA_FIRST_PRIMES_H_
#define NFIRST_PRIMES   65536

Variables

const uint32_t first_primes[NFIRST_PRIMES] MAYBE_UNUSED


Detailed Description

Precomputed small primes.

Author:
Automatically generated by genprimes.pl
Date:
Fri Jun 10 2011
Version:
2011-06-10
This is a list of the precomputed small primes together with a uint32_array_t wrapper.

Definition in file first_primes.h.


Define Documentation

#define _TIFA_FIRST_PRIMES_H_

Standard include guard.

Definition at line 36 of file first_primes.h.

#define NFIRST_PRIMES   65536

Number of precomputed primes in the first_primes array.

Definition at line 47 of file first_primes.h.


Variable Documentation

const uint32_array_t first_primes_array MAYBE_UNUSED

The first_primes array is a global array of uint32_t elements containing the first NFIRST_PRIMES prime numbers (from 2 and beyond).

The largest prime in the first_primes array.

first_primes_array is a uint32_array_t wrapper to the array first_primes.

Note:
first_primes_array 's alloced field is set to zero. Indeed, first_primes_array is merely a uint32_array_t wrapper for first_primes, and as such, it has no real "alloced" memory. Setting first_primes_array.alloced to 0 will prevent errors if free_mpz_array is inadvertently called on first_primes_array.

Definition at line 58 of file first_primes.h.


Generated on Fri Jun 17 11:10:11 2011 for TIFA by Doxygen 1.5.5