summaryrefslogtreecommitdiffstats
path: root/mpi-patches/add-bitops
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-02-19 20:45:22 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-02-19 20:45:22 -0800
commit124e7dd6977a0853d7a8399921e31fd1ccde2dcb (patch)
tree358586d1275e7927f72b9995ca68de48d5e557ae /mpi-patches/add-bitops
parent916b0f4a081b26ebb4b58afbcb651fc74dbe23cc (diff)
downloadtxr-124e7dd6977a0853d7a8399921e31fd1ccde2dcb.tar.gz
txr-124e7dd6977a0853d7a8399921e31fd1ccde2dcb.tar.bz2
txr-124e7dd6977a0853d7a8399921e31fd1ccde2dcb.zip
* mpi-patches/faster-square-root (mp_sqrt): Bugfix: was computing square
roots that were incorrect in the last digit/bit, because it was not generating the guess mask all the way down to bit zero. Also, added an early test to bail the loop when an the guess at the root happens to be right. * mpi-patches/add-bitops: Refreshed. * mpi-patches/fix-ctype-warnings: Likewise. * mpi-patches/mpi-to-double: Likewise.
Diffstat (limited to 'mpi-patches/add-bitops')
-rw-r--r--mpi-patches/add-bitops10
1 files changed, 5 insertions, 5 deletions
diff --git a/mpi-patches/add-bitops b/mpi-patches/add-bitops
index 7eae01cb..2019aa50 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 2012-09-16 10:50:08.270639006 -0700
-+++ mpi-1.8.6/mpi.c 2012-09-17 07:33:38.563334756 -0700
+--- mpi-1.8.6.orig/mpi.c 2014-02-19 19:01:39.562347737 -0800
++++ mpi-1.8.6/mpi.c 2014-02-19 19:01:43.174297255 -0800
@@ -16,6 +16,9 @@
#include <ctype.h>
#include <math.h>
@@ -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);
-@@ -2330,6 +2334,414 @@
+@@ -2336,6 +2340,414 @@
/* }}} */
@@ -437,8 +437,8 @@ Index: mpi-1.8.6/mpi.c
int ix;
Index: mpi-1.8.6/mpi.h
===================================================================
---- mpi-1.8.6.orig/mpi.h 2012-09-16 10:50:08.046513006 -0700
-+++ mpi-1.8.6/mpi.h 2012-09-17 07:32:54.738697256 -0700
+--- mpi-1.8.6.orig/mpi.h 2014-02-19 19:01:29.302491325 -0800
++++ mpi-1.8.6/mpi.h 2014-02-19 19:01:43.178297199 -0800
@@ -54,6 +54,7 @@
/* Macros for accessing the mp_int internals */