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