1N/A/* Default configuration for MPI library
1N/A *
1N/A * ***** BEGIN LICENSE BLOCK *****
1N/A * Version: MPL 1.1/GPL 2.0/LGPL 2.1
1N/A *
1N/A * The contents of this file are subject to the Mozilla Public License Version
1N/A * 1.1 (the "License"); you may not use this file except in compliance with
1N/A * the License. You may obtain a copy of the License at
1N/A * http://www.mozilla.org/MPL/
1N/A *
1N/A * Software distributed under the License is distributed on an "AS IS" basis,
1N/A * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
1N/A * for the specific language governing rights and limitations under the
1N/A * License.
1N/A *
1N/A * The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
1N/A *
1N/A * The Initial Developer of the Original Code is
1N/A * Michael J. Fromberger.
1N/A * Portions created by the Initial Developer are Copyright (C) 1997
1N/A * the Initial Developer. All Rights Reserved.
1N/A *
1N/A * Contributor(s):
1N/A * Netscape Communications Corporation
1N/A *
1N/A * Alternatively, the contents of this file may be used under the terms of
1N/A * either the GNU General Public License Version 2 or later (the "GPL"), or
1N/A * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
1N/A * in which case the provisions of the GPL or the LGPL are applicable instead
1N/A * of those above. If you wish to allow use of your version of this file only
1N/A * under the terms of either the GPL or the LGPL, and not to allow others to
1N/A * use your version of this file under the terms of the MPL, indicate your
1N/A * decision by deleting the provisions above and replace them with the notice
1N/A * and other provisions required by the GPL or the LGPL. If you do not delete
1N/A * the provisions above, a recipient may use your version of this file under
1N/A * the terms of any one of the MPL, the GPL or the LGPL.
1N/A *
1N/A * ***** END LICENSE BLOCK ***** */
1N/A/*
1N/A * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1N/A * Use is subject to license terms.
1N/A *
1N/A * Sun elects to use this software under the MPL license.
1N/A */
1N/A
1N/A#ifndef _MPI_CONFIG_H
1N/A#define _MPI_CONFIG_H
1N/A
1N/A#pragma ident "%Z%%M% %I% %E% SMI"
1N/A
1N/A/* $Id: mpi-config.h,v 1.5 2004/04/25 15:03:10 gerv%gerv.net Exp $ */
1N/A
1N/A/*
1N/A For boolean options,
1N/A 0 = no
1N/A 1 = yes
1N/A
1N/A Other options are documented individually.
1N/A
1N/A */
1N/A
1N/A#ifndef MP_IOFUNC
1N/A#define MP_IOFUNC 0 /* include mp_print() ? */
1N/A#endif
1N/A
1N/A#ifndef MP_MODARITH
1N/A#define MP_MODARITH 1 /* include modular arithmetic ? */
1N/A#endif
1N/A
1N/A#ifndef MP_NUMTH
1N/A#define MP_NUMTH 1 /* include number theoretic functions? */
1N/A#endif
1N/A
1N/A#ifndef MP_LOGTAB
1N/A#define MP_LOGTAB 1 /* use table of logs instead of log()? */
1N/A#endif
1N/A
1N/A#ifndef MP_MEMSET
1N/A#define MP_MEMSET 1 /* use memset() to zero buffers? */
1N/A#endif
1N/A
1N/A#ifndef MP_MEMCPY
1N/A#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */
1N/A#endif
1N/A
1N/A#ifndef MP_CRYPTO
1N/A#define MP_CRYPTO 1 /* erase memory on free? */
1N/A#endif
1N/A
1N/A#ifndef MP_ARGCHK
1N/A/*
1N/A 0 = no parameter checks
1N/A 1 = runtime checks, continue execution and return an error to caller
1N/A 2 = assertions; dump core on parameter errors
1N/A */
1N/A#ifdef DEBUG
1N/A#define MP_ARGCHK 2 /* how to check input arguments */
1N/A#else
1N/A#define MP_ARGCHK 1 /* how to check input arguments */
1N/A#endif
1N/A#endif
1N/A
1N/A#ifndef MP_DEBUG
1N/A#define MP_DEBUG 0 /* print diagnostic output? */
1N/A#endif
1N/A
1N/A#ifndef MP_DEFPREC
1N/A#define MP_DEFPREC 64 /* default precision, in digits */
1N/A#endif
1N/A
1N/A#ifndef MP_MACRO
1N/A#define MP_MACRO 0 /* use macros for frequent calls? */
1N/A#endif
1N/A
1N/A#ifndef MP_SQUARE
1N/A#define MP_SQUARE 1 /* use separate squaring code? */
1N/A#endif
1N/A
1N/A#endif /* _MPI_CONFIG_H */