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