BigInteger.getLowestSetBit
Class Overview | Class Members |
This Package |
All Packages
public int getLowestSetBit()
Description
Returns the index of the rightmost (lowest-order) one bit in this
number (i.e., the number of zero bits to the right of the rightmost
one bit). Returns -1 if this number contains no one bits.
(Computes (this==0? -1 : log2(this & -this)).)