1 /*	$NetBSD: mpi-config.h,v 1.1.1.3 2014/04/24 12:45:39 pettai Exp $	*/
2 
3 /* Default configuration for MPI library */
4 /* Id: mpi-config.h,v 1.2 2005/05/05 14:38:47 tom Exp  */
5 
6 #ifndef MPI_CONFIG_H_
7 #define MPI_CONFIG_H_
8 
9 /*
10   For boolean options,
11   0 = no
12   1 = yes
13 
14   Other options are documented individually.
15 
16  */
17 
18 #ifndef MP_IOFUNC
19 #define MP_IOFUNC     0  /* include mp_print() ?                */
20 #endif
21 
22 #ifndef MP_MODARITH
23 #define MP_MODARITH   1  /* include modular arithmetic ?        */
24 #endif
25 
26 #ifndef MP_NUMTH
27 #define MP_NUMTH      1  /* include number theoretic functions? */
28 #endif
29 
30 #ifndef MP_LOGTAB
31 #define MP_LOGTAB     1  /* use table of logs instead of log()? */
32 #endif
33 
34 #ifndef MP_MEMSET
35 #define MP_MEMSET     1  /* use memset() to zero buffers?       */
36 #endif
37 
38 #ifndef MP_MEMCPY
39 #define MP_MEMCPY     1  /* use memcpy() to copy buffers?       */
40 #endif
41 
42 #ifndef MP_CRYPTO
43 #define MP_CRYPTO     1  /* erase memory on free?               */
44 #endif
45 
46 #ifndef MP_ARGCHK
47 /*
48   0 = no parameter checks
49   1 = runtime checks, continue execution and return an error to caller
50   2 = assertions; dump core on parameter errors
51  */
52 #define MP_ARGCHK     2  /* how to check input arguments        */
53 #endif
54 
55 #ifndef MP_DEBUG
56 #define MP_DEBUG      0  /* print diagnostic output?            */
57 #endif
58 
59 #ifndef MP_DEFPREC
60 #define MP_DEFPREC    64 /* default precision, in digits        */
61 #endif
62 
63 #ifndef MP_MACRO
64 #define MP_MACRO      1  /* use macros for frequent calls?      */
65 #endif
66 
67 #ifndef MP_SQUARE
68 #define MP_SQUARE     1  /* use separate squaring code?         */
69 #endif
70 
71 #ifndef MP_PTAB_SIZE
72 /*
73   When building mpprime.c, we build in a table of small prime
74   values to use for primality testing.  The more you include,
75   the more space they take up.  See primes.c for the possible
76   values (currently 16, 32, 64, 128, 256, and 6542)
77  */
78 #define MP_PTAB_SIZE  128  /* how many built-in primes?         */
79 #endif
80 
81 #ifndef MP_COMPAT_MACROS
82 #define MP_COMPAT_MACROS 1   /* define compatibility macros?    */
83 #endif
84 
85 #endif /* ifndef MPI_CONFIG_H_ */
86 
87 
88 /* crc==3287762869, version==2, Sat Feb 02 06:43:53 2002 */
89 
90 /* Source: /cvs/libtom/libtommath/mtest/mpi-config.h,v  */
91 /* Revision: 1.2  */
92 /* Date: 2005/05/05 14:38:47  */
93