]> CyberLeo.Net >> Repos - CDN/portage-cdn.git/blob - net-p2p/freenet/files/freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch
net-p2p/freenet: revbump
[CDN/portage-cdn.git] / net-p2p / freenet / files / freenet-0.7.5_p1384-nativebiginteger-no-nativedoublevalue.patch
1 --- freenet-0.7.5_p1384/src/net/i2p/util/NativeBigInteger.java.orig     2011-07-29 16:48:36.000000000 +0200
2 +++ freenet-0.7.5_p1384/src/net/i2p/util/NativeBigInteger.java  2011-07-29 16:50:20.000000000 +0200
3 @@ -193,12 +193,6 @@
4          */
5         public native static byte[] nativeModPow(byte base[], byte exponent[], byte modulus[]);
6  
7 -       /**
8 -        * Converts a BigInteger byte-array to a 'double'
9 -        * @param ba Big endian twos complement representation of the BigInteger to convert to a double
10 -        * @return The plain double-value represented by 'ba'
11 -        */
12 -       public native static double nativeDoubleValue(byte ba[]);
13         private byte[] cachedBa = null;
14  
15          /**
16 @@ -286,11 +280,7 @@
17  
18         @Override
19         public double doubleValue() {
20 -               // TODO Recent tests show that Java version is quicker. Maybe drop?
21 -               if(_nativeOk)
22 -                       return nativeDoubleValue(toByteArray());
23 -               else
24 -                       return super.doubleValue();
25 +               return super.doubleValue();
26         }
27  
28         /**