1*c40a6cd7SToomas Soome /* Default configuration for MPI library 2f9fbec18Smcpowers * 3f9fbec18Smcpowers * ***** BEGIN LICENSE BLOCK ***** 4f9fbec18Smcpowers * Version: MPL 1.1/GPL 2.0/LGPL 2.1 5f9fbec18Smcpowers * 6f9fbec18Smcpowers * The contents of this file are subject to the Mozilla Public License Version 7f9fbec18Smcpowers * 1.1 (the "License"); you may not use this file except in compliance with 8f9fbec18Smcpowers * the License. You may obtain a copy of the License at 9f9fbec18Smcpowers * http://www.mozilla.org/MPL/ 10f9fbec18Smcpowers * 11f9fbec18Smcpowers * Software distributed under the License is distributed on an "AS IS" basis, 12f9fbec18Smcpowers * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 13f9fbec18Smcpowers * for the specific language governing rights and limitations under the 14f9fbec18Smcpowers * License. 15f9fbec18Smcpowers * 16f9fbec18Smcpowers * The Original Code is the MPI Arbitrary Precision Integer Arithmetic library. 17f9fbec18Smcpowers * 18f9fbec18Smcpowers * The Initial Developer of the Original Code is 19f9fbec18Smcpowers * Michael J. Fromberger. 20f9fbec18Smcpowers * Portions created by the Initial Developer are Copyright (C) 1997 21f9fbec18Smcpowers * the Initial Developer. All Rights Reserved. 22f9fbec18Smcpowers * 23f9fbec18Smcpowers * Contributor(s): 24f9fbec18Smcpowers * Netscape Communications Corporation 25f9fbec18Smcpowers * 26f9fbec18Smcpowers * Alternatively, the contents of this file may be used under the terms of 27f9fbec18Smcpowers * either the GNU General Public License Version 2 or later (the "GPL"), or 28f9fbec18Smcpowers * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 29f9fbec18Smcpowers * in which case the provisions of the GPL or the LGPL are applicable instead 30f9fbec18Smcpowers * of those above. If you wish to allow use of your version of this file only 31f9fbec18Smcpowers * under the terms of either the GPL or the LGPL, and not to allow others to 32f9fbec18Smcpowers * use your version of this file under the terms of the MPL, indicate your 33f9fbec18Smcpowers * decision by deleting the provisions above and replace them with the notice 34f9fbec18Smcpowers * and other provisions required by the GPL or the LGPL. If you do not delete 35f9fbec18Smcpowers * the provisions above, a recipient may use your version of this file under 36f9fbec18Smcpowers * the terms of any one of the MPL, the GPL or the LGPL. 37f9fbec18Smcpowers * 38f9fbec18Smcpowers * ***** END LICENSE BLOCK ***** */ 39f9fbec18Smcpowers /* 40f9fbec18Smcpowers * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 41f9fbec18Smcpowers * Use is subject to license terms. 42f9fbec18Smcpowers * 43f9fbec18Smcpowers * Sun elects to use this software under the MPL license. 44f9fbec18Smcpowers */ 45f9fbec18Smcpowers 46f9fbec18Smcpowers #ifndef _MPI_CONFIG_H 47f9fbec18Smcpowers #define _MPI_CONFIG_H 48f9fbec18Smcpowers 49f9fbec18Smcpowers /* $Id: mpi-config.h,v 1.5 2004/04/25 15:03:10 gerv%gerv.net Exp $ */ 50f9fbec18Smcpowers 51f9fbec18Smcpowers /* 52*c40a6cd7SToomas Soome For boolean options, 53f9fbec18Smcpowers 0 = no 54f9fbec18Smcpowers 1 = yes 55f9fbec18Smcpowers 56f9fbec18Smcpowers Other options are documented individually. 57f9fbec18Smcpowers 58f9fbec18Smcpowers */ 59f9fbec18Smcpowers 60f9fbec18Smcpowers #ifndef MP_IOFUNC 61f9fbec18Smcpowers #define MP_IOFUNC 0 /* include mp_print() ? */ 62f9fbec18Smcpowers #endif 63f9fbec18Smcpowers 64f9fbec18Smcpowers #ifndef MP_MODARITH 65f9fbec18Smcpowers #define MP_MODARITH 1 /* include modular arithmetic ? */ 66f9fbec18Smcpowers #endif 67f9fbec18Smcpowers 68f9fbec18Smcpowers #ifndef MP_NUMTH 69f9fbec18Smcpowers #define MP_NUMTH 1 /* include number theoretic functions? */ 70f9fbec18Smcpowers #endif 71f9fbec18Smcpowers 72f9fbec18Smcpowers #ifndef MP_LOGTAB 73f9fbec18Smcpowers #define MP_LOGTAB 1 /* use table of logs instead of log()? */ 74f9fbec18Smcpowers #endif 75f9fbec18Smcpowers 76f9fbec18Smcpowers #ifndef MP_MEMSET 77f9fbec18Smcpowers #define MP_MEMSET 1 /* use memset() to zero buffers? */ 78f9fbec18Smcpowers #endif 79f9fbec18Smcpowers 80f9fbec18Smcpowers #ifndef MP_MEMCPY 81f9fbec18Smcpowers #define MP_MEMCPY 1 /* use memcpy() to copy buffers? */ 82f9fbec18Smcpowers #endif 83f9fbec18Smcpowers 84f9fbec18Smcpowers #ifndef MP_CRYPTO 85f9fbec18Smcpowers #define MP_CRYPTO 1 /* erase memory on free? */ 86f9fbec18Smcpowers #endif 87f9fbec18Smcpowers 88f9fbec18Smcpowers #ifndef MP_ARGCHK 89f9fbec18Smcpowers /* 90f9fbec18Smcpowers 0 = no parameter checks 91f9fbec18Smcpowers 1 = runtime checks, continue execution and return an error to caller 92f9fbec18Smcpowers 2 = assertions; dump core on parameter errors 93f9fbec18Smcpowers */ 94f9fbec18Smcpowers #ifdef DEBUG 95f9fbec18Smcpowers #define MP_ARGCHK 2 /* how to check input arguments */ 96f9fbec18Smcpowers #else 97f9fbec18Smcpowers #define MP_ARGCHK 1 /* how to check input arguments */ 98f9fbec18Smcpowers #endif 99f9fbec18Smcpowers #endif 100f9fbec18Smcpowers 101f9fbec18Smcpowers #ifndef MP_DEBUG 102f9fbec18Smcpowers #define MP_DEBUG 0 /* print diagnostic output? */ 103f9fbec18Smcpowers #endif 104f9fbec18Smcpowers 105f9fbec18Smcpowers #ifndef MP_DEFPREC 106f9fbec18Smcpowers #define MP_DEFPREC 64 /* default precision, in digits */ 107f9fbec18Smcpowers #endif 108f9fbec18Smcpowers 109f9fbec18Smcpowers #ifndef MP_MACRO 110f9fbec18Smcpowers #define MP_MACRO 0 /* use macros for frequent calls? */ 111f9fbec18Smcpowers #endif 112f9fbec18Smcpowers 113f9fbec18Smcpowers #ifndef MP_SQUARE 114f9fbec18Smcpowers #define MP_SQUARE 1 /* use separate squaring code? */ 115f9fbec18Smcpowers #endif 116f9fbec18Smcpowers 117f9fbec18Smcpowers #endif /* _MPI_CONFIG_H */ 118