summaryrefslogtreecommitdiffstats
path: root/mpi-patches
diff options
context:
space:
mode:
Diffstat (limited to 'mpi-patches')
-rw-r--r--mpi-patches/mpi-to-double10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpi-patches/mpi-to-double b/mpi-patches/mpi-to-double
index 653d612c..608e9dc3 100644
--- a/mpi-patches/mpi-to-double
+++ b/mpi-patches/mpi-to-double
@@ -1,7 +1,7 @@
Index: mpi-1.8.6/mpi.c
===================================================================
---- mpi-1.8.6.orig/mpi.c 2012-03-20 20:23:46.604727758 -0700
-+++ mpi-1.8.6/mpi.c 2012-03-20 20:37:28.514792258 -0700
+--- mpi-1.8.6.orig/mpi.c 2012-03-20 22:20:10.242815758 -0700
++++ mpi-1.8.6/mpi.c 2012-03-21 06:48:36.401050757 -0700
@@ -14,6 +14,7 @@
#include <stdlib.h>
#include <string.h>
@@ -25,7 +25,7 @@ Index: mpi-1.8.6/mpi.c
+ if (!mult)
+ mult = pow(2.0, MP_DIGIT_BIT);
+
-+ for (ix = (int) used - 2; ix >= 0; ix++) {
++ for (ix = (int) used - 2; ix >= 0; ix--) {
+ out = out * mult;
+ out += (double) dp[ix];
+ }
@@ -42,8 +42,8 @@ Index: mpi-1.8.6/mpi.c
Index: mpi-1.8.6/mpi.h
===================================================================
---- mpi-1.8.6.orig/mpi.h 2012-03-20 20:23:39.184556258 -0700
-+++ mpi-1.8.6/mpi.h 2012-03-20 20:25:30.018865508 -0700
+--- mpi-1.8.6.orig/mpi.h 2012-03-20 22:20:09.994676258 -0700
++++ mpi-1.8.6/mpi.h 2012-03-20 22:20:10.498959758 -0700
@@ -187,6 +187,11 @@
#endif /* end MP_NUMTH */