@@ -2134,15 +2134,13 @@ private static short DivideThreeWordsByTwo(
2134
2134
short valueQ ;
2135
2135
{
2136
2136
valueQ = ((short )(valueB1 + 1 ) == 0 ) ? words1 [words1Start + 2 ] :
2137
- (
2138
- (
2139
- valueB1 != 0 ) ? DivideUnsigned (
2140
- MakeUint (
2141
- words1 [words1Start + 1 ],
2142
- words1 [words1Start + 2 ]),
2143
- (short )(((int )valueB1 + 1 ) & 0xffff )) : DivideUnsigned (
2144
- MakeUint (words1 [words1Start ], words1 [words1Start + 1 ]),
2145
- valueB0 ));
2137
+ ((valueB1 != 0 ) ? DivideUnsigned (
2138
+ MakeUint (
2139
+ words1 [words1Start + 1 ],
2140
+ words1 [words1Start + 2 ]),
2141
+ (short )(((int )valueB1 + 1 ) & 0xffff )) : DivideUnsigned (
2142
+ MakeUint (words1 [words1Start ], words1 [words1Start + 1 ]),
2143
+ valueB0 ));
2146
2144
2147
2145
int valueQint = ((int )valueQ ) & 0xffff ;
2148
2146
int valueB0int = ((int )valueB0 ) & 0xffff ;
@@ -3417,14 +3415,14 @@ public int getDigitCount() {
3417
3415
((value >= 100000000000000L ) ? 15 : ((value >=
3418
3416
10000000000000L ) ?
3419
3417
14 : ((value >= 1000000000000L ) ? 13 : ((value >=
3420
- 100000000000L ) ? 12 : ((value >= 10000000000L ) ?
3421
- 11 : ((value >= 1000000000L ) ? 10 : 9 )))))))));
3418
+ 100000000000L ) ? 12 : ((value >= 10000000000L ) ?
3419
+ 11 : ((value >= 1000000000L ) ? 10 : 9 )))))))));
3422
3420
} else {
3423
3421
int v2 = (int )value ;
3424
3422
return (v2 >= 100000000 ) ? 9 : ((v2 >= 10000000 ) ? 8 : ((v2 >=
3425
3423
1000000 ) ? 7 : ((v2 >= 100000 ) ? 6 : ((v2 >=
3426
- 10000 ) ? 5 : ((v2 >= 1000 ) ? 4 : ((v2 >= 100 ) ? 3 :
3427
- ((v2 >= 10 ) ? 2 : 1 )))))));
3424
+ 10000 ) ? 5 : ((v2 >= 1000 ) ? 4 : ((v2 >= 100 ) ?
3425
+ 3 : ((v2 >= 10 ) ? 2 : 1 )))))));
3428
3426
}
3429
3427
}
3430
3428
int bitlen = this .getUnsignedBitLength ();
@@ -4063,18 +4061,19 @@ public int getLowestSetBit() {
4063
4061
} else {
4064
4062
return (((c << 15 ) & 0xffff ) != 0 ) ? (retSetBit + 0 ) : ((((c <<
4065
4063
14 ) & 0xffff ) != 0 ) ? (retSetBit + 1 ) : ((((c <<
4066
- 13 ) & 0xffff ) != 0 ) ? (retSetBit + 2 ) : ((((c <<
4067
- 12 ) & 0xffff ) != 0 ) ? (retSetBit + 3 ) : ((((c << 11 ) & 0xffff ) !=
4068
- 0 ) ? (retSetBit +
4064
+ 13 ) & 0xffff ) != 0 ) ? (retSetBit + 2 ) : ((((c <<
4065
+ 12 ) & 0xffff ) != 0 ) ? (retSetBit + 3 ) : ((((c << 11 ) &
4066
+ 0xffff ) != 0 ) ? (retSetBit +
4069
4067
4 ) : ((((c << 10 ) & 0xffff ) != 0 ) ? (retSetBit +
4070
- 5 ) : ((((c << 9 ) & 0xffff ) != 0 ) ? (retSetBit + 6 ) : ((((c <<
4068
+ 5 ) : ((((c << 9 ) & 0xffff ) != 0 ) ? (retSetBit + 6 ) :
4069
+ ((((c <<
4071
4070
8 ) & 0xffff ) != 0 ) ? (retSetBit + 7 ) : ((((c << 7 ) & 0xffff ) !=
4072
4071
0 ) ? (retSetBit + 8 ) : ((((c << 6 ) & 0xffff ) !=
4073
- 0 ) ? (retSetBit + 9 ) : ((((c <<
4072
+ 0 ) ? (retSetBit + 9 ) : ((((c <<
4074
4073
5 ) & 0xffff ) != 0 ) ? (retSetBit + 10 ) : ((((c <<
4075
- 4 ) & 0xffff ) != 0 ) ? (retSetBit + 11 ) : ((((c << 3 ) & 0xffff ) !=
4076
- 0 ) ? (retSetBit + 12 ) : ((((c << 2 ) & 0xffff ) !=
4077
- 0 ) ? (retSetBit + 13 ) : ((((c << 1 ) & 0xffff ) !=
4074
+ 4 ) & 0xffff ) != 0 ) ? (retSetBit + 11 ) : ((((c << 3 ) &
4075
+ 0xffff ) != 0 ) ? (retSetBit + 12 ) : ((((c << 2 ) & 0xffff ) !=
4076
+ 0 ) ? (retSetBit + 13 ) : ((((c << 1 ) & 0xffff ) !=
4078
4077
0 ) ? (retSetBit + 14 ) : (retSetBit + 15 )))))))))))))));
4079
4078
}
4080
4079
}
0 commit comments