~ubuntu-branches/ubuntu/intrepid/meanwhile/intrepid

« back to all changes in this revision

Viewing changes to src/mpi/mpi-config.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2006-01-13 12:38:18 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060113123818-zod7j3hd9z0iz5fy
Tags: 1.0.2-0ubuntu1
* New upstream release
* Rename libmeanwhile0 to libmeanwhile1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Default configuration for MPI library */
 
2
 
 
3
#ifndef MPI_CONFIG_H_
 
4
#define MPI_CONFIG_H_
 
5
 
 
6
/*
 
7
  For boolean options, 
 
8
  0 = no
 
9
  1 = yes
 
10
 
 
11
  Other options are documented individually.
 
12
 
 
13
 */
 
14
 
 
15
#ifndef MP_IOFUNC
 
16
#define MP_IOFUNC     0  /* include mp_print() ?                */
 
17
#endif
 
18
 
 
19
#ifndef MP_MODARITH
 
20
#define MP_MODARITH   1  /* include modular arithmetic ?        */
 
21
#endif
 
22
 
 
23
#ifndef MP_NUMTH
 
24
#define MP_NUMTH      1  /* include number theoretic functions? */
 
25
#endif
 
26
 
 
27
#ifndef MP_LOGTAB
 
28
#define MP_LOGTAB     0  /* use table of logs instead of log()? */
 
29
#endif
 
30
 
 
31
#ifndef MP_MEMSET
 
32
#define MP_MEMSET     1  /* use memset() to zero buffers?       */
 
33
#endif
 
34
 
 
35
#ifndef MP_MEMCPY
 
36
#define MP_MEMCPY     1  /* use memcpy() to copy buffers?       */
 
37
#endif
 
38
 
 
39
#ifndef MP_CRYPTO
 
40
#define MP_CRYPTO     0  /* erase memory on free?               */
 
41
#endif
 
42
 
 
43
#ifndef MP_ARGCHK
 
44
/*
 
45
  0 = no parameter checks
 
46
  1 = runtime checks, continue execution and return an error to caller
 
47
  2 = assertions; dump core on parameter errors
 
48
 */
 
49
#define MP_ARGCHK     2  /* how to check input arguments        */
 
50
#endif
 
51
 
 
52
#ifndef MP_DEBUG
 
53
#define MP_DEBUG      0  /* print diagnostic output?            */
 
54
#endif
 
55
 
 
56
#ifndef MP_DEFPREC
 
57
#define MP_DEFPREC    32 /* default precision, in digits        */
 
58
#endif
 
59
 
 
60
#ifndef MP_MACRO
 
61
#define MP_MACRO      1  /* use macros for frequent calls?      */
 
62
#endif
 
63
 
 
64
#ifndef MP_SQUARE
 
65
#define MP_SQUARE     1  /* use separate squaring code?         */
 
66
#endif
 
67
 
 
68
#ifndef MP_PTAB_SIZE
 
69
/*
 
70
  When building mpprime.c, we build in a table of small prime
 
71
  values to use for primality testing.  The more you include,
 
72
  the more space they take up.  See primes.c for the possible
 
73
  values (currently 16, 32, 64, 128, 256, and 6542)
 
74
 */
 
75
#define MP_PTAB_SIZE  128  /* how many built-in primes?         */
 
76
#endif
 
77
 
 
78
#ifndef MP_COMPAT_MACROS
 
79
#define MP_COMPAT_MACROS 0   /* define compatibility macros?    */
 
80
#endif
 
81
 
 
82
#endif /* ifndef MPI_CONFIG_H_ */
 
83
 
 
84