1
/* Default configuration for MPI library */
11
Other options are documented individually.
16
#define MP_IOFUNC 0 /* include mp_print() ? */
20
#define MP_MODARITH 1 /* include modular arithmetic ? */
24
#define MP_NUMTH 1 /* include number theoretic functions? */
28
#define MP_LOGTAB 0 /* use table of logs instead of log()? */
32
#define MP_MEMSET 1 /* use memset() to zero buffers? */
36
#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */
40
#define MP_CRYPTO 0 /* erase memory on free? */
45
0 = no parameter checks
46
1 = runtime checks, continue execution and return an error to caller
47
2 = assertions; dump core on parameter errors
49
#define MP_ARGCHK 2 /* how to check input arguments */
53
#define MP_DEBUG 0 /* print diagnostic output? */
57
#define MP_DEFPREC 32 /* default precision, in digits */
61
#define MP_MACRO 1 /* use macros for frequent calls? */
65
#define MP_SQUARE 1 /* use separate squaring code? */
70
When building mpprime.c, we build in a table of small prime
71
values to use for primality testing. The more you include,
72
the more space they take up. See primes.c for the possible
73
values (currently 16, 32, 64, 128, 256, and 6542)
75
#define MP_PTAB_SIZE 128 /* how many built-in primes? */
78
#ifndef MP_COMPAT_MACROS
79
#define MP_COMPAT_MACROS 0 /* define compatibility macros? */
82
#endif /* ifndef MPI_CONFIG_H_ */