- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for UnsignedLongs (0.38 sec)
-
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) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { longs[i] = random(); divisors[i] = randomDivisor(longs[i]); decimalStrings[i] = UnsignedLongs.toString(longs[i]); binaryStrings[i] = UnsignedLongs.toString(longs[i], 2); hexStrings[i] = UnsignedLongs.toString(longs[i], 16); prefixedHexStrings[i] = "0x" + hexStrings[i]; } } @Benchmark long divide(int reps) { long tmp = 0;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.4K bytes - Viewed (0) -
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) -
guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
void setUp() { for (int i = 0; i < ARRAY_SIZE; i++) { longs[i] = random(); divisors[i] = randomDivisor(longs[i]); decimalStrings[i] = UnsignedLongs.toString(longs[i]); binaryStrings[i] = UnsignedLongs.toString(longs[i], 2); hexStrings[i] = UnsignedLongs.toString(longs[i], 16); prefixedHexStrings[i] = "0x" + hexStrings[i]; } } @Benchmark long divide(int reps) { long tmp = 0;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.4K bytes - Viewed (0) -
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) -
android/guava/src/com/google/common/primitives/package-info.java
* <li>{@link Doubles} * <li>{@link Floats} * <li>{@link Ints} * <ul> * <li>{@link UnsignedInts} * </ul> * <li>{@link Longs} * <ul> * <li>{@link UnsignedLongs} * </ul> * <li>{@link Shorts} * </ul> * * <h3>General static utilities</h3> * * <ul> * <li>{@link Primitives} * </ul> */ @CheckReturnValue @NullMarked
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Jan 03 15:30:05 UTC 2025 - 2K bytes - Viewed (0) -
guava/src/com/google/common/math/LongMath.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Aug 29 16:20:07 UTC 2025 - 46.8K bytes - Viewed (0) -
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) -
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)