Class BitUtil
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.stat.hll.util.BitUtil
-
public class BitUtil extends Object
A collection of bit utilities.
-
-
Constructor Summary
Constructors Constructor Description BitUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intleastSignificantBit(long value)Computes the least-significant bit of the specifiedlongthat is set to1.
-
-
-
Method Detail
-
leastSignificantBit
public static int leastSignificantBit(long value)
Computes the least-significant bit of the specifiedlongthat is set to1. Zero-indexed.- Parameters:
value- thelongwhose least-significant bit is desired.- Returns:
- the least-significant bit of the specified
long.-1is returned if there are no bits set.
-
-