File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
sources/net.sf.j2s.java.core/src Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3473,7 +3473,7 @@ public int getLowestSetBit() {
34733473 int i ,b ;
34743474 for (i =0 ; (b = getInt (i )) == 0 ; i ++)
34753475 ;
3476- lsb += (i * BITS_PER_INT ) + Integer .numberOfTrailingZeros (b ) - SPARE_BITS_INT ;
3476+ lsb += (i * BITS_PER_INT ) + Integer .numberOfTrailingZeros (b );
34773477 }
34783478 lowestSetBit = lsb + 2 ;
34793479 }
Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ public class Test_BigInt extends Test_ {
88
99 public static void main (String [] args ) {
1010
11+ BigInteger m = BigInteger .valueOf (4 );
12+ m = m .modPow (BigInteger .valueOf (3 ), BigInteger .valueOf (8 ));
13+ System .out .println (m );
14+ //4^3 mod 8, 6^5 mod 2
1115 BigDecimal e = new BigDecimal ("200.05" );
1216 System .out .println (e );
1317 BigDecimal f = new BigDecimal (45000 );
You can’t perform that action at this time.
0 commit comments