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