mpi-config.h 2.1 KB

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