diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-12-10 12:09:27 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-12-10 12:09:27 -0800 |
commit | 64eb78436c46c1c6eecba1093a9072ff829209c4 (patch) | |
tree | 1f9cb01221dab25bc633f9ea6d7c592d429d558d /ChangeLog | |
parent | 17928334e0b80cf009df2a5838d6778fe23cf64f (diff) | |
download | txr-64eb78436c46c1c6eecba1093a9072ff829209c4.tar.gz txr-64eb78436c46c1c6eecba1093a9072ff829209c4.tar.bz2 txr-64eb78436c46c1c6eecba1093a9072ff829209c4.zip |
* mpi-patches/add-mp-hash: Rewrote mp_hash to only hash enough
low-order bit material from the bignum to fill an unsigned long.
We don't need to walk the entire bignum. If the low order
digit of the bignum is at least as large as an unsigned long,
we just take that as the hash, otherwise we take enough of the
digits to fill an unsigned long. For negative numbers, we just
invert the bits of the hash.
* mpi-patches/add-mpi-toradix-with-case: Refreshed.
* mpi-patches/fix-mult-bug: Refreshed.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,5 +1,19 @@ 2011-12-10 Kaz Kylheku <kaz@kylheku.com> + * mpi-patches/add-mp-hash: Rewrote mp_hash to only hash enough + low-order bit material from the bignum to fill an unsigned long. + We don't need to walk the entire bignum. If the low order + digit of the bignum is at least as large as an unsigned long, + we just take that as the hash, otherwise we take enough of the + digits to fill an unsigned long. For negative numbers, we just + invert the bits of the hash. + + * mpi-patches/add-mpi-toradix-with-case: Refreshed. + + * mpi-patches/fix-mult-bug: Refreshed. + +2011-12-10 Kaz Kylheku <kaz@kylheku.com> + * lib.c (mulv): Recognize cases to eliminate a wasteful mul call with an initial element of 1. |