security/nss/lib/freebl/mpi/mpi-config.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* Default configuration for MPI library
michael@0 2 *
michael@0 3 * This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 #ifndef MPI_CONFIG_H_
michael@0 8 #define MPI_CONFIG_H_
michael@0 9
michael@0 10 /*
michael@0 11 For boolean options,
michael@0 12 0 = no
michael@0 13 1 = yes
michael@0 14
michael@0 15 Other options are documented individually.
michael@0 16
michael@0 17 */
michael@0 18
michael@0 19 #ifndef MP_IOFUNC
michael@0 20 #define MP_IOFUNC 0 /* include mp_print() ? */
michael@0 21 #endif
michael@0 22
michael@0 23 #ifndef MP_MODARITH
michael@0 24 #define MP_MODARITH 1 /* include modular arithmetic ? */
michael@0 25 #endif
michael@0 26
michael@0 27 #ifndef MP_NUMTH
michael@0 28 #define MP_NUMTH 1 /* include number theoretic functions? */
michael@0 29 #endif
michael@0 30
michael@0 31 #ifndef MP_LOGTAB
michael@0 32 #define MP_LOGTAB 1 /* use table of logs instead of log()? */
michael@0 33 #endif
michael@0 34
michael@0 35 #ifndef MP_MEMSET
michael@0 36 #define MP_MEMSET 1 /* use memset() to zero buffers? */
michael@0 37 #endif
michael@0 38
michael@0 39 #ifndef MP_MEMCPY
michael@0 40 #define MP_MEMCPY 1 /* use memcpy() to copy buffers? */
michael@0 41 #endif
michael@0 42
michael@0 43 #ifndef MP_CRYPTO
michael@0 44 #define MP_CRYPTO 1 /* erase memory on free? */
michael@0 45 #endif
michael@0 46
michael@0 47 #ifndef MP_ARGCHK
michael@0 48 /*
michael@0 49 0 = no parameter checks
michael@0 50 1 = runtime checks, continue execution and return an error to caller
michael@0 51 2 = assertions; dump core on parameter errors
michael@0 52 */
michael@0 53 #ifdef DEBUG
michael@0 54 #define MP_ARGCHK 2 /* how to check input arguments */
michael@0 55 #else
michael@0 56 #define MP_ARGCHK 1 /* how to check input arguments */
michael@0 57 #endif
michael@0 58 #endif
michael@0 59
michael@0 60 #ifndef MP_DEBUG
michael@0 61 #define MP_DEBUG 0 /* print diagnostic output? */
michael@0 62 #endif
michael@0 63
michael@0 64 #ifndef MP_DEFPREC
michael@0 65 #define MP_DEFPREC 64 /* default precision, in digits */
michael@0 66 #endif
michael@0 67
michael@0 68 #ifndef MP_MACRO
michael@0 69 #define MP_MACRO 1 /* use macros for frequent calls? */
michael@0 70 #endif
michael@0 71
michael@0 72 #ifndef MP_SQUARE
michael@0 73 #define MP_SQUARE 1 /* use separate squaring code? */
michael@0 74 #endif
michael@0 75
michael@0 76 #endif /* ifndef MPI_CONFIG_H_ */
michael@0 77
michael@0 78

mercurial