#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 |
uint32_array_t
wrapper.
Definition in file first_primes.h.
#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.
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
.
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.