Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 328 for divide (0.07 sec)

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

        a >>= aTwos; // divide out all 2s
        int bTwos = Long.numberOfTrailingZeros(b);
        b >>= bTwos; // divide out all 2s
        while (a != b) { // both a, b are odd
          // The key to the binary GCD algorithm is as follows:
          // Both a and b are odd. Assume a > b; then gcd(a - b, b) = gcd(a, b).
          // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacDataInputStream.java

                BigInteger firstBigInt = BigInteger.valueOf(first);
                BigInteger completeBigInt = lastBigInt.add(firstBigInt.shiftLeft(32));
                completeBigInt = completeBigInt.divide(BigInteger.valueOf(10000L));
                completeBigInt = completeBigInt.add(BigInteger.valueOf(-SmbConstants.MILLISECONDS_BETWEEN_1970_AND_1601));
                date = new Date(completeBigInt.longValue());
            }
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 21 21:19:58 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLong.java

      }
    
      /**
       * Returns the result of dividing this by {@code val}.
       *
       * @since 14.0
       */
      public UnsignedLong dividedBy(UnsignedLong val) {
        return fromLongBits(UnsignedLongs.divide(value, checkNotNull(val).value));
      }
    
      /**
       * Returns this modulo {@code val}.
       *
       * @since 14.0
       */
      public UnsignedLong mod(UnsignedLong val) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/UnsignedLong.java

      }
    
      /**
       * Returns the result of dividing this by {@code val}.
       *
       * @since 14.0
       */
      public UnsignedLong dividedBy(UnsignedLong val) {
        return fromLongBits(UnsignedLongs.divide(value, checkNotNull(val).value));
      }
    
      /**
       * Returns this modulo {@code val}.
       *
       * @since 14.0
       */
      public UnsignedLong mod(UnsignedLong val) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 22 13:09:25 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/LongMath.java

        a >>= aTwos; // divide out all 2s
        int bTwos = Long.numberOfTrailingZeros(b);
        b >>= bTwos; // divide out all 2s
        while (a != b) { // both a, b are odd
          // The key to the binary GCD algorithm is as follows:
          // Both a and b are odd. Assume a > b; then gcd(a - b, b) = gcd(a, b).
          // But in gcd(a - b, b), a - b is even and b is odd, so we can divide out powers of two.
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 09 16:39:37 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            if (b != 0) {
              UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
              UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
              long expected =
                  aUnsigned.bigIntegerValue().divide(bUnsigned.bigIntegerValue()).longValue();
              UnsignedLong unsignedDiv = aUnsigned.dividedBy(bUnsigned);
              assertThat(unsignedDiv.longValue()).isEqualTo(expected);
            }
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/BaseEncoding.java

    import static com.google.common.base.Preconditions.checkPositionIndexes;
    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.math.IntMath.divide;
    import static com.google.common.math.IntMath.log2;
    import static java.lang.Math.max;
    import static java.lang.Math.min;
    import static java.math.RoundingMode.CEILING;
    import static java.math.RoundingMode.FLOOR;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

            if (b != 0) {
              UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
              UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
              long expected =
                  aUnsigned.bigIntegerValue().divide(bUnsigned.bigIntegerValue()).longValue();
              UnsignedLong unsignedDiv = aUnsigned.dividedBy(bUnsigned);
              assertThat(unsignedDiv.longValue()).isEqualTo(expected);
            }
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedInteger.java

       *
       * @throws ArithmeticException if {@code val} is zero
       * @since 14.0
       */
      public UnsignedInteger dividedBy(UnsignedInteger val) {
        return fromIntBits(UnsignedInts.divide(value, checkNotNull(val).value));
      }
    
      /**
       * Returns this mod {@code val}.
       *
       * @throws ArithmeticException if {@code val} is zero
       * @since 14.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/UnsignedInteger.java

       *
       * @throws ArithmeticException if {@code val} is zero
       * @since 14.0
       */
      public UnsignedInteger dividedBy(UnsignedInteger val) {
        return fromIntBits(UnsignedInts.divide(value, checkNotNull(val).value));
      }
    
      /**
       * Returns this mod {@code val}.
       *
       * @throws ArithmeticException if {@code val} is zero
       * @since 14.0
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 23 18:45:50 UTC 2023
    - 8.3K bytes
    - Viewed (0)
Back to top