summaryrefslogtreecommitdiffstats
path: root/mpi/mpi-config.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-14 06:58:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-14 06:58:29 -0700
commit6df765493bcfc913e7797e09ce134487773c40b7 (patch)
treed77bd01783893d1458cb2e75e0620314ea4488fd /mpi/mpi-config.h
parentc43a9b4246f0c383965668779e82212fafcd9dc4 (diff)
downloadtxr-6df765493bcfc913e7797e09ce134487773c40b7.tar.gz
txr-6df765493bcfc913e7797e09ce134487773c40b7.tar.bz2
txr-6df765493bcfc913e7797e09ce134487773c40b7.zip
Big MPI whitepace and comment cleanup.
* mpi/logtab.h, mpi/mpi-config.h mpi/mpi-types.h mpi/mpi.c, mpi/mpi.h mpi/mplogic.c mpi/mplogic.h: Reformatted comments. Removed useless comments. Removed superfluous blank lines and whitespace. Added space between C keywords if, for, while, sizeof and opening parens. Removed #if 0 blocks. Tabs to spaces.
Diffstat (limited to 'mpi/mpi-config.h')
-rw-r--r--mpi/mpi-config.h53
1 files changed, 21 insertions, 32 deletions
diff --git a/mpi/mpi-config.h b/mpi/mpi-config.h
index 46c29f93..56bcc482 100644
--- a/mpi/mpi-config.h
+++ b/mpi/mpi-config.h
@@ -1,78 +1,67 @@
/* Default configuration for MPI library */
-/* $Id: mpi-config.h,v 1.1 2004/02/08 04:29:29 sting Exp $ */
-
-/*
- For boolean options,
- 0 = no
- 1 = yes
-
- Other options are documented individually.
-
- */
#ifndef MP_IOFUNC
-#define MP_IOFUNC 0 /* include mp_print() ? */
+#define MP_IOFUNC 0 /* include mp_print() ? */
#endif
#ifndef MP_MODARITH
-#define MP_MODARITH 1 /* include modular arithmetic ? */
+#define MP_MODARITH 1 /* include modular arithmetic ? */
#endif
#ifndef MP_NUMTH
-#define MP_NUMTH 1 /* include number theoretic functions? */
+#define MP_NUMTH 1 /* include number theoretic functions? */
#endif
#ifndef MP_LOGTAB
-#define MP_LOGTAB 1 /* use table of logs instead of log()? */
+#define MP_LOGTAB 1 /* use table of logs instead of log()? */
#endif
#ifndef MP_MEMSET
-#define MP_MEMSET 1 /* use memset() to zero buffers? */
+#define MP_MEMSET 1 /* use memset() to zero buffers? */
#endif
#ifndef MP_MEMCPY
-#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */
+#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */
#endif
#ifndef MP_CRYPTO
-#define MP_CRYPTO 0 /* erase memory on free? */
+#define MP_CRYPTO 0 /* erase memory on free? */
#endif
#ifndef MP_ARGCHK
-/*
- 0 = no parameter checks
- 1 = runtime checks, continue execution and return an error to caller
- 2 = assertions; dump core on parameter errors
+/* 0 = no parameter checks
+ * 1 = runtime checks, continue execution and return an error to caller
+ * 2 = assertions; dump core on parameter errors
*/
-#define MP_ARGCHK 2 /* how to check input arguments */
+#define MP_ARGCHK 2 /* how to check input arguments */
#endif
#ifndef MP_DEBUG
-#define MP_DEBUG 0 /* print diagnostic output? */
+#define MP_DEBUG 0 /* print diagnostic output? */
#endif
#ifndef MP_DEFPREC
-#define MP_DEFPREC 16 /* default precision, in digits */
+#define MP_DEFPREC 16 /* default precision, in digits */
#endif
#ifndef MP_MACRO
-#define MP_MACRO 1 /* use macros for frequent calls? */
+#define MP_MACRO 1 /* use macros for frequent calls? */
#endif
#ifndef MP_SQUARE
-#define MP_SQUARE 1 /* use separate squaring code? */
+#define MP_SQUARE 1 /* use separate squaring code? */
#endif
#ifndef MP_PTAB_SIZE
/*
- When building mpprime.c, we build in a table of small prime
- values to use for primality testing. The more you include,
- the more space they take up. See primes.c for the possible
- values (currently 16, 32, 64, 128, 256, and 6542)
+ * When building mpprime.c, we build in a table of small prime
+ * values to use for primality testing. The more you include,
+ * the more space they take up. See primes.c for the possible
+ * values (currently 16, 32, 64, 128, 256, and 6542)
*/
-#define MP_PTAB_SIZE 128 /* how many built-in primes? */
+#define MP_PTAB_SIZE 128 /* how many built-in primes? */
#endif
#ifndef MP_COMPAT_MACROS
-#define MP_COMPAT_MACROS 0 /* define compatibility macros? */
+#define MP_COMPAT_MACROS 0 /* define compatibility macros? */
#endif