1/*
2 * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
3 * Use is subject to license terms.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this library; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24/* *********************************************************************
25 *
26 * The Original Code is the MPI Arbitrary Precision Integer Arithmetic library.
27 *
28 * The Initial Developer of the Original Code is
29 * Michael J. Fromberger.
30 * Portions created by the Initial Developer are Copyright (C) 1997
31 * the Initial Developer. All Rights Reserved.
32 *
33 * Contributor(s):
34 *   Netscape Communications Corporation
35 *
36 *********************************************************************** */
37
38#ifndef _MPI_CONFIG_H
39#define _MPI_CONFIG_H
40
41/* $Id: mpi-config.h,v 1.5 2004/04/25 15:03:10 gerv%gerv.net Exp $ */
42
43/*
44  For boolean options,
45  0 = no
46  1 = yes
47
48  Other options are documented individually.
49
50 */
51
52#ifndef MP_IOFUNC
53#define MP_IOFUNC     0  /* include mp_print() ?                */
54#endif
55
56#ifndef MP_MODARITH
57#define MP_MODARITH   1  /* include modular arithmetic ?        */
58#endif
59
60#ifndef MP_NUMTH
61#define MP_NUMTH      1  /* include number theoretic functions? */
62#endif
63
64#ifndef MP_LOGTAB
65#define MP_LOGTAB     1  /* use table of logs instead of log()? */
66#endif
67
68#ifndef MP_MEMSET
69#define MP_MEMSET     1  /* use memset() to zero buffers?       */
70#endif
71
72#ifndef MP_MEMCPY
73#define MP_MEMCPY     1  /* use memcpy() to copy buffers?       */
74#endif
75
76#ifndef MP_CRYPTO
77#define MP_CRYPTO     1  /* erase memory on free?               */
78#endif
79
80#ifndef MP_ARGCHK
81/*
82  0 = no parameter checks
83  1 = runtime checks, continue execution and return an error to caller
84  2 = assertions; dump core on parameter errors
85 */
86#ifdef DEBUG
87#define MP_ARGCHK     2  /* how to check input arguments        */
88#else
89#define MP_ARGCHK     1  /* how to check input arguments        */
90#endif
91#endif
92
93#ifndef MP_DEBUG
94#define MP_DEBUG      0  /* print diagnostic output?            */
95#endif
96
97#ifndef MP_DEFPREC
98#define MP_DEFPREC    64 /* default precision, in digits        */
99#endif
100
101#ifndef MP_MACRO
102#define MP_MACRO      0  /* use macros for frequent calls?      */
103#endif
104
105#ifndef MP_SQUARE
106#define MP_SQUARE     1  /* use separate squaring code?         */
107#endif
108
109#endif /* _MPI_CONFIG_H */
110