michael@0: /* Default configuration for MPI library michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef MPI_CONFIG_H_ michael@0: #define MPI_CONFIG_H_ michael@0: michael@0: /* michael@0: For boolean options, michael@0: 0 = no michael@0: 1 = yes michael@0: michael@0: Other options are documented individually. michael@0: michael@0: */ michael@0: michael@0: #ifndef MP_IOFUNC michael@0: #define MP_IOFUNC 0 /* include mp_print() ? */ michael@0: #endif michael@0: michael@0: #ifndef MP_MODARITH michael@0: #define MP_MODARITH 1 /* include modular arithmetic ? */ michael@0: #endif michael@0: michael@0: #ifndef MP_NUMTH michael@0: #define MP_NUMTH 1 /* include number theoretic functions? */ michael@0: #endif michael@0: michael@0: #ifndef MP_LOGTAB michael@0: #define MP_LOGTAB 1 /* use table of logs instead of log()? */ michael@0: #endif michael@0: michael@0: #ifndef MP_MEMSET michael@0: #define MP_MEMSET 1 /* use memset() to zero buffers? */ michael@0: #endif michael@0: michael@0: #ifndef MP_MEMCPY michael@0: #define MP_MEMCPY 1 /* use memcpy() to copy buffers? */ michael@0: #endif michael@0: michael@0: #ifndef MP_CRYPTO michael@0: #define MP_CRYPTO 1 /* erase memory on free? */ michael@0: #endif michael@0: michael@0: #ifndef MP_ARGCHK michael@0: /* michael@0: 0 = no parameter checks michael@0: 1 = runtime checks, continue execution and return an error to caller michael@0: 2 = assertions; dump core on parameter errors michael@0: */ michael@0: #ifdef DEBUG michael@0: #define MP_ARGCHK 2 /* how to check input arguments */ michael@0: #else michael@0: #define MP_ARGCHK 1 /* how to check input arguments */ michael@0: #endif michael@0: #endif michael@0: michael@0: #ifndef MP_DEBUG michael@0: #define MP_DEBUG 0 /* print diagnostic output? */ michael@0: #endif michael@0: michael@0: #ifndef MP_DEFPREC michael@0: #define MP_DEFPREC 64 /* default precision, in digits */ michael@0: #endif michael@0: michael@0: #ifndef MP_MACRO michael@0: #define MP_MACRO 1 /* use macros for frequent calls? */ michael@0: #endif michael@0: michael@0: #ifndef MP_SQUARE michael@0: #define MP_SQUARE 1 /* use separate squaring code? */ michael@0: #endif michael@0: michael@0: #endif /* ifndef MPI_CONFIG_H_ */ michael@0: michael@0: