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/add-bitops | |
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/add-bitops')
-rw-r--r-- | mpi-patches/add-bitops | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/mpi-patches/add-bitops b/mpi-patches/add-bitops index 81d7de2b..19b9fee9 100644 --- a/mpi-patches/add-bitops +++ b/mpi-patches/add-bitops @@ -1,7 +1,7 @@ Index: mpi-1.8.6/mpi.c =================================================================== ---- mpi-1.8.6.orig/mpi.c 2014-06-16 11:22:15.632802821 -0700 -+++ mpi-1.8.6/mpi.c 2014-06-28 07:42:26.140352649 -0700 +--- mpi-1.8.6.orig/mpi.c 2015-02-07 19:33:17.280186661 -0800 ++++ mpi-1.8.6/mpi.c 2015-02-07 19:33:19.412149446 -0800 @@ -16,6 +16,9 @@ #include <ctype.h> #include <math.h> @@ -10,9 +10,9 @@ Index: mpi-1.8.6/mpi.c +#define MIN(A, B) ((A) < (B) ? (A) : (B)) + typedef unsigned char mem_t; - extern mem_t *chk_malloc(size_t size); extern mem_t *chk_calloc(size_t n, size_t size); -@@ -159,6 +162,7 @@ + +@@ -157,6 +160,7 @@ mp_err s_mp_grow(mp_int *mp, mp_size min); /* increase allocated size */ mp_err s_mp_pad(mp_int *mp, mp_size min); /* left pad with zeroes */ @@ -20,7 +20,7 @@ Index: mpi-1.8.6/mpi.c int s_highest_bit_mp(mp_int *a); mp_err s_mp_set_bit(mp_int *a, int bit); -@@ -2336,6 +2340,430 @@ +@@ -2334,6 +2338,430 @@ /* }}} */ @@ -453,8 +453,8 @@ Index: mpi-1.8.6/mpi.c int ix; Index: mpi-1.8.6/mpi.h =================================================================== ---- mpi-1.8.6.orig/mpi.h 2014-06-16 11:22:15.620803044 -0700 -+++ mpi-1.8.6/mpi.h 2014-06-28 08:46:48.354193482 -0700 +--- mpi-1.8.6.orig/mpi.h 2015-02-07 19:33:14.612233293 -0800 ++++ mpi-1.8.6/mpi.h 2015-02-07 19:33:19.412149446 -0800 @@ -54,6 +54,7 @@ /* Macros for accessing the mp_int internals */ |