Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/share/native/sun/security/ec/impl/mpi-config.h
38918 views
/*1* Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.2* Use is subject to license terms.3*4* This library is free software; you can redistribute it and/or5* modify it under the terms of the GNU Lesser General Public6* License as published by the Free Software Foundation; either7* version 2.1 of the License, or (at your option) any later version.8*9* This library is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12* Lesser General Public License for more details.13*14* You should have received a copy of the GNU Lesser General Public License15* along with this library; if not, write to the Free Software Foundation,16* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223/* *********************************************************************24*25* The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.26*27* The Initial Developer of the Original Code is28* Michael J. Fromberger.29* Portions created by the Initial Developer are Copyright (C) 199730* the Initial Developer. All Rights Reserved.31*32* Contributor(s):33* Netscape Communications Corporation34*35*********************************************************************** */3637#ifndef _MPI_CONFIG_H38#define _MPI_CONFIG_H3940/* $Id: mpi-config.h,v 1.5 2004/04/25 15:03:10 gerv%gerv.net Exp $ */4142/*43For boolean options,440 = no451 = yes4647Other options are documented individually.4849*/5051#ifndef MP_IOFUNC52#define MP_IOFUNC 0 /* include mp_print() ? */53#endif5455#ifndef MP_MODARITH56#define MP_MODARITH 1 /* include modular arithmetic ? */57#endif5859#ifndef MP_NUMTH60#define MP_NUMTH 1 /* include number theoretic functions? */61#endif6263#ifndef MP_LOGTAB64#define MP_LOGTAB 1 /* use table of logs instead of log()? */65#endif6667#ifndef MP_MEMSET68#define MP_MEMSET 1 /* use memset() to zero buffers? */69#endif7071#ifndef MP_MEMCPY72#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */73#endif7475#ifndef MP_CRYPTO76#define MP_CRYPTO 1 /* erase memory on free? */77#endif7879#ifndef MP_ARGCHK80/*810 = no parameter checks821 = runtime checks, continue execution and return an error to caller832 = assertions; dump core on parameter errors84*/85#ifdef DEBUG86#define MP_ARGCHK 2 /* how to check input arguments */87#else88#define MP_ARGCHK 1 /* how to check input arguments */89#endif90#endif9192#ifndef MP_DEBUG93#define MP_DEBUG 0 /* print diagnostic output? */94#endif9596#ifndef MP_DEFPREC97#define MP_DEFPREC 64 /* default precision, in digits */98#endif99100#ifndef MP_MACRO101#define MP_MACRO 0 /* use macros for frequent calls? */102#endif103104#ifndef MP_SQUARE105#define MP_SQUARE 1 /* use separate squaring code? */106#endif107108#endif /* _MPI_CONFIG_H */109110111