Class LeastSignificantBitSpeedTest


  • public class LeastSignificantBitSpeedTest
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int javaLsb​(long value)  
      static int leastSignificantBit​(long value)
      Computes the least-significant bit of the specified long that is set to 1.
      static void main​(java.lang.String[] a)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LeastSignificantBitSpeedTest

        public LeastSignificantBitSpeedTest()
    • Method Detail

      • leastSignificantBit

        public static int leastSignificantBit​(long value)
        Computes the least-significant bit of the specified long that is set to 1. Zero-indexed.
        Parameters:
        value - the long 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

        public static void main​(java.lang.String[] a)