summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-09 22:52:52 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-09 22:52:52 -0800
commit754564abc42b4ea9211da6927a6f089ba42850d4 (patch)
tree03cd86f0edfa34ef9fba7426b9cc00a8fbf0bab6
parent236a20e92316535bc75dde63d51431875e253bfb (diff)
downloadtxr-754564abc42b4ea9211da6927a6f089ba42850d4.tar.gz
txr-754564abc42b4ea9211da6927a6f089ba42850d4.tar.bz2
txr-754564abc42b4ea9211da6927a6f089ba42850d4.zip
2011-12-09 Kaz Kylheku <kaz@kylheku.com>
* mpi-patches/config-types: Added missing definitions of MP_DIGIT_SIZE in two cases.
-rw-r--r--mpi-patches/config-types24
1 files changed, 13 insertions, 11 deletions
diff --git a/mpi-patches/config-types b/mpi-patches/config-types
index 78b672b8..2c8e4a6d 100644
--- a/mpi-patches/config-types
+++ b/mpi-patches/config-types
@@ -1,8 +1,8 @@
Index: mpi-1.8.6/mpi-types.h
===================================================================
---- mpi-1.8.6.orig/mpi-types.h 2011-12-09 09:00:59.000000000 -0800
-+++ mpi-1.8.6/mpi-types.h 2011-12-09 14:09:59.000000000 -0800
-@@ -1,17 +1,54 @@
+--- mpi-1.8.6.orig/mpi-types.h 2011-12-09 14:10:39.000000000 -0800
++++ mpi-1.8.6/mpi-types.h 2011-12-09 22:38:15.000000000 -0800
+@@ -1,17 +1,56 @@
-/* Type definitions generated by 'types.pl' */
+/*
+ * Universal. We can further tweak these by making them
@@ -52,10 +52,12 @@ Index: mpi-1.8.6/mpi-types.h
+#elif SIZEOF_INT / 2 == SIZEOF_SHORT
+ typedef unsigned short mp_digit;
+ typedef unsigned int mp_word;
++ #define MP_DIGIT_SIZE SIZEOF_SHORT
+ #define DIGIT_FMT "%" #SIZEOF_INT "x"
+#elif SIZEOF_SHORT == 2
+ typedef unsigned char mp_digit;
+ typedef unsigned short mp_word;
++ #define MP_DIGIT_SIZE 1
+ #define DIGIT_FMT "%" #SIZEOF_SHORT "x"
+#else
+ #error Failure to configure MPI types on this target platform
@@ -72,8 +74,8 @@ Index: mpi-1.8.6/mpi-types.h
+#define RADIX (((mp_word) MP_DIGIT_MAX) + 1)
Index: mpi-1.8.6/mpi.c
===================================================================
---- mpi-1.8.6.orig/mpi.c 2011-12-09 09:00:59.000000000 -0800
-+++ mpi-1.8.6/mpi.c 2011-12-09 14:10:29.000000000 -0800
+--- mpi-1.8.6.orig/mpi.c 2011-12-09 14:10:39.000000000 -0800
++++ mpi-1.8.6/mpi.c 2011-12-09 22:37:31.000000000 -0800
@@ -9,6 +9,7 @@
$Id: mpi.c,v 1.1 2004/02/08 04:29:29 sting Exp $
*/
@@ -84,8 +86,8 @@ Index: mpi-1.8.6/mpi.c
#include <string.h>
Index: mpi-1.8.6/mplogic.c
===================================================================
---- mpi-1.8.6.orig/mplogic.c 2011-12-09 09:00:59.000000000 -0800
-+++ mpi-1.8.6/mplogic.c 2011-12-09 14:10:29.000000000 -0800
+--- mpi-1.8.6.orig/mplogic.c 2011-12-09 14:10:39.000000000 -0800
++++ mpi-1.8.6/mplogic.c 2011-12-09 22:37:31.000000000 -0800
@@ -9,6 +9,7 @@
$Id: mplogic.c,v 1.1 2004/02/08 04:29:29 sting Exp $
*/
@@ -96,8 +98,8 @@ Index: mpi-1.8.6/mplogic.c
Index: mpi-1.8.6/mpprime.c
===================================================================
---- mpi-1.8.6.orig/mpprime.c 2011-12-09 09:00:59.000000000 -0800
-+++ mpi-1.8.6/mpprime.c 2011-12-09 09:01:01.000000000 -0800
+--- mpi-1.8.6.orig/mpprime.c 2011-12-09 14:10:39.000000000 -0800
++++ mpi-1.8.6/mpprime.c 2011-12-09 14:10:41.000000000 -0800
@@ -10,6 +10,7 @@
$Id: mpprime.c,v 1.1 2004/02/08 04:29:29 sting Exp $
*/
@@ -108,8 +110,8 @@ Index: mpi-1.8.6/mpprime.c
Index: mpi-1.8.6/mprsa.c
===================================================================
---- mpi-1.8.6.orig/mprsa.c 2011-12-09 09:00:59.000000000 -0800
-+++ mpi-1.8.6/mprsa.c 2011-12-09 09:01:01.000000000 -0800
+--- mpi-1.8.6.orig/mprsa.c 2011-12-09 14:10:39.000000000 -0800
++++ mpi-1.8.6/mprsa.c 2011-12-09 14:10:41.000000000 -0800
@@ -11,6 +11,7 @@
$Id: mprsa.c,v 1.1 2004/02/08 04:29:29 sting Exp $
*/