Package it.unimi.dsi.test
Class LeastSignificantBitSpeedTest
java.lang.Object
it.unimi.dsi.test.LeastSignificantBitSpeedTest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
javaLsb
(long value) static int
leastSignificantBit
(long value) Computes the least-significant bit of the specifiedlong
that is set to1
.static void
-
Constructor Details
-
LeastSignificantBitSpeedTest
public LeastSignificantBitSpeedTest()
-
-
Method Details
-
leastSignificantBit
public static int leastSignificantBit(long value) Computes the least-significant bit of the specifiedlong
that is set to1
. Zero-indexed.- Parameters:
value
- thelong
whose least-significant bit is desired.- Returns:
- the least-significant bit of the specified
long
.-1
is returned if there are no bits set.
-
javaLsb
public static int javaLsb(long value) -
main
-