Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for UnsignedLongs (0.16 sec)

  1. android/guava/src/com/google/common/primitives/UnsignedLongs.java

     * primitive utilities</a>.
     *
     * @author Louis Wasserman
     * @author Brian Milch
     * @author Colin Evans
     * @since 10.0
     */
    @GwtCompatible
    public final class UnsignedLongs {
      private UnsignedLongs() {}
    
      public static final long MAX_VALUE = -1L; // Equivalent to 2^64 - 1
    
      /**
       * A (self-inverse) bijection which converts the ordering on unsigned longs to the ordering on
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 5)).isEqualTo(3689348814741910322L);
      }
    
      public void testRemainder() {
        assertThat(UnsignedLongs.remainder(14, 5)).isEqualTo(4);
        assertThat(UnsignedLongs.remainder(0, 50)).isEqualTo(0);
        assertThat(UnsignedLongs.remainder(0xfffffffffffffffeL, 0xfffffffffffffffdL)).isEqualTo(1);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/UnsignedLong.java

       * @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) {
        return fromLongBits(UnsignedLongs.remainder(value, checkNotNull(val).value));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/LongMath.java

            if (result < 0) {
              result = UnsignedLongs.remainder(result, m);
            }
            // result < 2^63 again
            result += aLo * bHi; // aLo * bHi < 2^63, result < 2^64
            result = times2ToThe32Mod(result, m); // result < m < 2^63
            return plusMod(result, UnsignedLongs.remainder(aLo * bLo /* < 2^64 */, m), m);
          }
    
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 29 16:20:07 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/Hashing.java

       * means {@link HashCode#asLong} is guaranteed to return the same value that
       * farmhash::Fingerprint64() would for the same input (when compared using {@link
       * com.google.common.primitives.UnsignedLongs}'s encoding of 64-bit unsigned numbers).
       *
       * <p>This function is best understood as a <a
       * href="https://en.wikipedia.org/wiki/Fingerprint_(computing)">fingerprint</a> rather than a true
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Hashing.java

       * means {@link HashCode#asLong} is guaranteed to return the same value that
       * farmhash::Fingerprint64() would for the same input (when compared using {@link
       * com.google.common.primitives.UnsignedLongs}'s encoding of 64-bit unsigned numbers).
       *
       * <p>This function is best understood as a <a
       * href="https://en.wikipedia.org/wiki/Fingerprint_(computing)">fingerprint</a> rather than a true
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:06:57 UTC 2025
    - 31.1K bytes
    - Viewed (0)
Back to top