| OLD | NEW |
| (Empty) |
| 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 /* $Id: mpi-config.h,v 1.7 2012/04/25 14:49:50 gerv%gerv.net Exp $ */ | |
| 7 | |
| 8 #ifndef MPI_CONFIG_H_ | |
| 9 #define MPI_CONFIG_H_ | |
| 10 | |
| 11 /* | |
| 12 For boolean options, | |
| 13 0 = no | |
| 14 1 = yes | |
| 15 | |
| 16 Other options are documented individually. | |
| 17 | |
| 18 */ | |
| 19 | |
| 20 #ifndef MP_IOFUNC | |
| 21 #define MP_IOFUNC 0 /* include mp_print() ? */ | |
| 22 #endif | |
| 23 | |
| 24 #ifndef MP_MODARITH | |
| 25 #define MP_MODARITH 1 /* include modular arithmetic ? */ | |
| 26 #endif | |
| 27 | |
| 28 #ifndef MP_NUMTH | |
| 29 #define MP_NUMTH 1 /* include number theoretic functions? */ | |
| 30 #endif | |
| 31 | |
| 32 #ifndef MP_LOGTAB | |
| 33 #define MP_LOGTAB 1 /* use table of logs instead of log()? */ | |
| 34 #endif | |
| 35 | |
| 36 #ifndef MP_MEMSET | |
| 37 #define MP_MEMSET 1 /* use memset() to zero buffers? */ | |
| 38 #endif | |
| 39 | |
| 40 #ifndef MP_MEMCPY | |
| 41 #define MP_MEMCPY 1 /* use memcpy() to copy buffers? */ | |
| 42 #endif | |
| 43 | |
| 44 #ifndef MP_CRYPTO | |
| 45 #define MP_CRYPTO 1 /* erase memory on free? */ | |
| 46 #endif | |
| 47 | |
| 48 #ifndef MP_ARGCHK | |
| 49 /* | |
| 50 0 = no parameter checks | |
| 51 1 = runtime checks, continue execution and return an error to caller | |
| 52 2 = assertions; dump core on parameter errors | |
| 53 */ | |
| 54 #ifdef DEBUG | |
| 55 #define MP_ARGCHK 2 /* how to check input arguments */ | |
| 56 #else | |
| 57 #define MP_ARGCHK 1 /* how to check input arguments */ | |
| 58 #endif | |
| 59 #endif | |
| 60 | |
| 61 #ifndef MP_DEBUG | |
| 62 #define MP_DEBUG 0 /* print diagnostic output? */ | |
| 63 #endif | |
| 64 | |
| 65 #ifndef MP_DEFPREC | |
| 66 #define MP_DEFPREC 64 /* default precision, in digits */ | |
| 67 #endif | |
| 68 | |
| 69 #ifndef MP_MACRO | |
| 70 #define MP_MACRO 1 /* use macros for frequent calls? */ | |
| 71 #endif | |
| 72 | |
| 73 #ifndef MP_SQUARE | |
| 74 #define MP_SQUARE 1 /* use separate squaring code? */ | |
| 75 #endif | |
| 76 | |
| 77 #endif /* ifndef MPI_CONFIG_H_ */ | |
| 78 | |
| 79 | |
| OLD | NEW |