diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-02-07 19:36:32 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-02-07 19:36:32 -0800 |
commit | 91664c356f4eb1f31a90f36d369bceb386466f42 (patch) | |
tree | 61d2714a2805c484749f65566cde2635926bb326 /mpi-patches/fix-mult-bug | |
parent | cbd2937606577580931b1de05bd18bf10de736ca (diff) | |
download | txr-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-mult-bug')
-rw-r--r-- | mpi-patches/fix-mult-bug | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mpi-patches/fix-mult-bug b/mpi-patches/fix-mult-bug index a3e375df..5ddb3094 100644 --- a/mpi-patches/fix-mult-bug +++ b/mpi-patches/fix-mult-bug @@ -1,8 +1,8 @@ Index: mpi-1.8.6/mpi.c =================================================================== ---- mpi-1.8.6.orig/mpi.c 2012-03-04 11:49:39.720925007 -0800 -+++ mpi-1.8.6/mpi.c 2012-03-04 11:49:47.661389007 -0800 -@@ -3268,7 +3268,7 @@ +--- mpi-1.8.6.orig/mpi.c 2015-02-07 19:32:48.892686392 -0800 ++++ mpi-1.8.6/mpi.c 2015-02-07 19:32:53.524604501 -0800 +@@ -3266,7 +3266,7 @@ unless absolutely necessary. */ max = USED(a); @@ -11,7 +11,7 @@ Index: mpi-1.8.6/mpi.c if(CARRYOUT(w) != 0) { if((res = s_mp_pad(a, max + 1)) != MP_OKAY) return res; -@@ -3276,7 +3276,7 @@ +@@ -3274,7 +3274,7 @@ } for(ix = 0; ix < max; ix++) { @@ -20,7 +20,7 @@ Index: mpi-1.8.6/mpi.c dp[ix] = ACCUM(w); k = CARRYOUT(w); } -@@ -3493,7 +3493,7 @@ +@@ -3491,7 +3491,7 @@ pa = DIGITS(a); for(jx = 0; jx < ua; ++jx, ++pa) { pt = pbt + ix + jx; @@ -29,7 +29,7 @@ Index: mpi-1.8.6/mpi.c *pt = ACCUM(w); k = CARRYOUT(w); } -@@ -3575,7 +3575,7 @@ +@@ -3573,7 +3573,7 @@ if(*pa1 == 0) continue; @@ -38,7 +38,7 @@ Index: mpi-1.8.6/mpi.c pbt[ix + ix] = ACCUM(w); k = CARRYOUT(w); -@@ -3597,7 +3597,7 @@ +@@ -3595,7 +3595,7 @@ pt = pbt + ix + jx; /* Compute the multiplicative step */ @@ -47,7 +47,7 @@ Index: mpi-1.8.6/mpi.c /* If w is more than half MP_WORD_MAX, the doubling will overflow, and we need to record a carry out into the next -@@ -3641,7 +3641,7 @@ +@@ -3639,7 +3639,7 @@ */ kx = 1; while(k) { |