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