summaryrefslogtreecommitdiffstats
path: root/mpi-patches/fix-bad-shifts
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-02-07 19:36:32 -0800
committerKaz Kylheku <kaz@kylheku.com>2015-02-07 19:36:32 -0800
commit91664c356f4eb1f31a90f36d369bceb386466f42 (patch)
tree61d2714a2805c484749f65566cde2635926bb326 /mpi-patches/fix-bad-shifts
parentcbd2937606577580931b1de05bd18bf10de736ca (diff)
downloadtxr-91664c356f4eb1f31a90f36d369bceb386466f42.tar.gz
txr-91664c356f4eb1f31a90f36d369bceb386466f42.tar.bz2
txr-91664c356f4eb1f31a90f36d369bceb386466f42.zip
* Makefile (CFLAGS): Removed puzzling, unnecessary definitions
of XMALLOC, XCALLOC, XREALLOC and XFREE for $(MPI_OBJS). MPI does not use such macros and the allocator is already retargetted to use the TXR one. * mpi-patches/use-txr-allocator: In this patch, we don't need external declaration for chk_malloc or chk_realloc because they are not used. Only chk_calloc is used. * mpi-patches/add-bitops: Refreshed. * mpi-patches/add-mp-hash: Likewise. * mpi-patches/add-mp-set-intptr: Likewise. * mpi-patches/add-mpi-toradix-with-case: Likewise. * mpi-patches/bit-search-optimizations: Likewise. * mpi-patches/export-mp-eq: Likewise. * mpi-patches/faster-square-root: Likewise. * mpi-patches/fix-bad-shifts: Likewise. * mpi-patches/fix-ctype-warnings: Likewise. * mpi-patches/fix-mult-bug: Likewise. * mpi-patches/mpi-set-double-intptr: Likewise. * mpi-patches/mpi-set-mpi-word: Likewise. * mpi-patches/mpi-to-double: Likewise.
Diffstat (limited to 'mpi-patches/fix-bad-shifts')
-rw-r--r--mpi-patches/fix-bad-shifts14
1 files changed, 7 insertions, 7 deletions
diff --git a/mpi-patches/fix-bad-shifts b/mpi-patches/fix-bad-shifts
index abe109a2..acd77f51 100644
--- a/mpi-patches/fix-bad-shifts
+++ b/mpi-patches/fix-bad-shifts
@@ -1,8 +1,8 @@
Index: mpi-1.8.6/mpi.c
===================================================================
---- mpi-1.8.6.orig/mpi.c 2012-03-04 11:49:57.142719257 -0800
-+++ mpi-1.8.6/mpi.c 2012-03-04 11:49:59.676143507 -0800
-@@ -764,7 +764,7 @@
+--- mpi-1.8.6.orig/mpi.c 2015-02-07 19:32:58.456517144 -0800
++++ mpi-1.8.6/mpi.c 2015-02-07 19:33:01.740459238 -0800
+@@ -762,7 +762,7 @@
if((pow = s_mp_ispow2d(d)) >= 0) {
mp_digit mask;
@@ -11,7 +11,7 @@ Index: mpi-1.8.6/mpi.c
rem = DIGIT(a, 0) & mask;
if(q) {
-@@ -3081,7 +3081,7 @@
+@@ -3079,7 +3079,7 @@
return;
/* Flush all the bits above 2^d in its digit */
@@ -20,7 +20,7 @@ Index: mpi-1.8.6/mpi.c
dp[ndig] &= dmask;
/* Flush all digits above the one with 2^d in it */
-@@ -3114,7 +3114,7 @@
+@@ -3112,7 +3112,7 @@
dp = DIGITS(mp); used = USED(mp);
d %= DIGIT_BIT;
@@ -29,7 +29,7 @@ Index: mpi-1.8.6/mpi.c
/* If the shift requires another digit, make sure we've got one to
work with */
-@@ -3162,7 +3162,7 @@
+@@ -3160,7 +3160,7 @@
s_mp_rshd(mp, d / DIGIT_BIT);
d %= DIGIT_BIT;
@@ -38,7 +38,7 @@ Index: mpi-1.8.6/mpi.c
save = 0;
for(ix = USED(mp) - 1; ix >= 0; ix--) {
-@@ -3842,7 +3842,7 @@
+@@ -3840,7 +3840,7 @@
if((res = s_mp_pad(a, dig + 1)) != MP_OKAY)
return res;