Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getLowestSetBit (0.27 sec)

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

         * >= 0.5 and signifFloor is odd (which is true if both the 0.5 bit and the 1 bit are set).
         */
        boolean increment =
            (twiceSignifFloor & 1) != 0 && ((signifFloor & 1) != 0 || absX.getLowestSetBit() < shift);
        long signifRounded = increment ? signifFloor + 1 : signifFloor;
        long bits = (long) (exponent + EXPONENT_BIAS) << SIGNIFICAND_BITS;
        bits += signifRounded;
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/math/DoubleUtils.java

         * >= 0.5 and signifFloor is odd (which is true if both the 0.5 bit and the 1 bit are set).
         */
        boolean increment =
            (twiceSignifFloor & 1) != 0 && ((signifFloor & 1) != 0 || absX.getLowestSetBit() < shift);
        long signifRounded = increment ? signifFloor + 1 : signifFloor;
        long bits = (long) (exponent + EXPONENT_BIAS) << SIGNIFICAND_BITS;
        bits += signifRounded;
        /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 28 15:37:52 UTC 2021
    - 5.1K bytes
    - Viewed (0)
  3. 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)
  4. 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