Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getLowestSetBit (1.02 sec)

  1. android/guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      /** Returns {@code true} if {@code x} represents a power of two. */
      public static boolean isPowerOfTwo(BigInteger x) {
        checkNotNull(x);
        return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1;
      }
    
      /**
       * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/BigIntegerMath.java

      }
    
      /** Returns {@code true} if {@code x} represents a power of two. */
      public static boolean isPowerOfTwo(BigInteger x) {
        checkNotNull(x);
        return x.signum() > 0 && x.getLowestSetBit() == x.bitLength() - 1;
      }
    
      /**
       * Returns the base-2 logarithm of {@code x}, rounded according to the specified rounding mode.
       *
       * @throws IllegalArgumentException if {@code x <= 0}
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 18.9K bytes
    - Viewed (0)
Back to top