public static boolean isPowerOfTwo(final int value) {
        return (value & (value - 1)) == 0;
    }
@param value to be tested to see if it is a power of two.
@return true if the value is a power of 2 otherwise false.
jctools-core/src/main/java/org/jctools/util/Pow2.java