diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-12-12 22:01:52 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-12-12 22:01:52 -0800 |
commit | 5a9bf359b9aca63f5eb26f5a371b0fae7dd353b4 (patch) | |
tree | 1dcf9463ed92bf267ec6be339dbfcff514d34257 /mpi-patches/bit-search-optimizations | |
parent | 705896d8c9d738de984e593a67ec008a16736276 (diff) | |
download | txr-5a9bf359b9aca63f5eb26f5a371b0fae7dd353b4.tar.gz txr-5a9bf359b9aca63f5eb26f5a371b0fae7dd353b4.tar.bz2 txr-5a9bf359b9aca63f5eb26f5a371b0fae7dd353b4.zip |
* 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.
Diffstat (limited to 'mpi-patches/bit-search-optimizations')
-rw-r--r-- | mpi-patches/bit-search-optimizations | 6 |
1 files changed, 3 insertions, 3 deletions
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) { |