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