diff options
author | Thomas Sachau <tommy@gentoo.org> | 2011-07-31 18:45:48 +0000 |
---|---|---|
committer | Thomas Sachau <tommy@gentoo.org> | 2011-07-31 18:45:48 +0000 |
commit | 5658860ac01528d8a9dc7f67b1882562da3895d4 (patch) | |
tree | 7cd112133a87d34c898b9885ce128ad216d64a69 /net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch | |
parent | Add missing sys-devel/m4 dependency, bug 376119. (diff) | |
download | gentoo-2-5658860ac01528d8a9dc7f67b1882562da3895d4.tar.gz gentoo-2-5658860ac01528d8a9dc7f67b1882562da3895d4.tar.bz2 gentoo-2-5658860ac01528d8a9dc7f67b1882562da3895d4.zip |
Version bump, drop old, update live ebuild, fixes bug 376973, bug 376975 and bug 376277
(Portage version: 2.2.0_alpha47-r1/cvs/Linux x86_64)
Diffstat (limited to 'net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch')
-rw-r--r-- | net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch b/net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch new file mode 100644 index 000000000000..5300fb196235 --- /dev/null +++ b/net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch @@ -0,0 +1,28 @@ +--- freenet-0.7.5_p1384/src/net/i2p/util/NativeBigInteger.java.orig 2011-07-29 16:48:36.000000000 +0200 ++++ freenet-0.7.5_p1384/src/net/i2p/util/NativeBigInteger.java 2011-07-29 16:50:20.000000000 +0200 +@@ -193,12 +193,6 @@ + */ + public native static byte[] nativeModPow(byte base[], byte exponent[], byte modulus[]); + +- /** +- * Converts a BigInteger byte-array to a 'double' +- * @param ba Big endian twos complement representation of the BigInteger to convert to a double +- * @return The plain double-value represented by 'ba' +- */ +- public native static double nativeDoubleValue(byte ba[]); + private byte[] cachedBa = null; + + /** +@@ -286,11 +280,7 @@ + + @Override + public double doubleValue() { +- // TODO Recent tests show that Java version is quicker. Maybe drop? +- if(_nativeOk) +- return nativeDoubleValue(toByteArray()); +- else +- return super.doubleValue(); ++ return super.doubleValue(); + } + + /** |