1 /* Default configuration for MPI library
2  *
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #ifndef MPI_CONFIG_H_
8 #define MPI_CONFIG_H_
9 
10 /*
11   For boolean options,
12   0 = no
13   1 = yes
14 
15   Other options are documented individually.
16 
17  */
18 
19 #ifndef MP_IOFUNC
20 #define MP_IOFUNC 0 /* include mp_print() ?                */
21 #endif
22 
23 #ifndef MP_MODARITH
24 #define MP_MODARITH 1 /* include modular arithmetic ?        */
25 #endif
26 
27 #ifndef MP_LOGTAB
28 #define MP_LOGTAB 1 /* use table of logs instead of log()? */
29 #endif
30 
31 #ifndef MP_ARGCHK
32 /*
33   0 = no parameter checks
34   1 = runtime checks, continue execution and return an error to caller
35   2 = assertions; dump core on parameter errors
36  */
37 #ifdef DEBUG
38 #define MP_ARGCHK 2 /* how to check input arguments        */
39 #else
40 #define MP_ARGCHK 1 /* how to check input arguments        */
41 #endif
42 #endif
43 
44 #ifndef MP_DEBUG
45 #define MP_DEBUG 0 /* print diagnostic output?            */
46 #endif
47 
48 #ifndef MP_DEFPREC
49 #define MP_DEFPREC 64 /* default precision, in digits        */
50 #endif
51 
52 #ifndef MP_SQUARE
53 #define MP_SQUARE 1 /* use separate squaring code?         */
54 #endif
55 
56 #endif /* ifndef MPI_CONFIG_H_ */
57