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