From 124e7dd6977a0853d7a8399921e31fd1ccde2dcb Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Wed, 19 Feb 2014 20:45:22 -0800 Subject: * 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. --- mpi-patches/add-bitops | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'mpi-patches/add-bitops') 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 #include @@ -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 */ -- cgit v1.2.3