From 5a9bf359b9aca63f5eb26f5a371b0fae7dd353b4 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Mon, 12 Dec 2011 22:01:52 -0800 Subject: * mpi-patches/bit-search-optimizations (s_highest_bit): Added static storage class specifier. * mpi-patches/fix-mult-bug (s_mp_sqr): More braindamage found in MPI. This function performs additions and multiplication mp_digit, expecting a mp_word precision result without casting. This function is needed for exponentiation. --- mpi-patches/bit-search-optimizations | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mpi-patches/bit-search-optimizations') diff --git a/mpi-patches/bit-search-optimizations b/mpi-patches/bit-search-optimizations index ea283a3e..d9b4357d 100644 --- a/mpi-patches/bit-search-optimizations +++ b/mpi-patches/bit-search-optimizations @@ -1,12 +1,12 @@ Index: mpi-1.8.6/mpi.c =================================================================== ---- mpi-1.8.6.orig/mpi.c 2011-12-12 21:08:44.000000000 -0800 -+++ mpi-1.8.6/mpi.c 2011-12-12 21:34:32.000000000 -0800 +--- mpi-1.8.6.orig/mpi.c 2011-12-12 21:55:35.000000000 -0800 ++++ mpi-1.8.6/mpi.c 2011-12-12 21:55:45.000000000 -0800 @@ -2908,6 +2908,218 @@ /* }}} */ -+int s_highest_bit(mp_digit n) ++static int s_highest_bit(mp_digit n) +{ +#if MP_DIGIT_SIZE == 8 + if (n & 0x7FFFFFFF00000000) { -- cgit v1.2.3