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