- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 69 for remainder (0.08 seconds)
-
android/guava/src/com/google/common/math/Quantiles.java
// get a rounded ratio and a remainder which can be expressed as ints, without risk of // overflow: int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); int remainder = (int) (numerator - (long) quotient * scale); quotients[i] = quotient; remainders[i] = remainder; requiredSelections[requiredSelectionsCount] = quotient;Created: 2026-04-03 12:43 - Last Modified: 2026-03-23 21:06 - 30.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/QuantilesAlgorithm.java
int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); int remainder = (int) (numerator - positionFloor * scale); if (remainder == 0) { return dataset[positionFloor]; } else { double positionFrac = (double) remainder / scale; return dataset[positionFloor] + positionFrac * (dataset[positionFloor + 1] - dataset[positionFloor]);
Created: 2026-04-03 12:43 - Last Modified: 2026-03-03 05:21 - 7.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/util/Base64.java
Created: 2026-04-05 00:10 - Last Modified: 2025-08-16 01:32 - 4.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/MultilineMessageHelper.java
Created: 2026-04-05 03:35 - Last Modified: 2025-07-23 17:27 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/QuantilesAlgorithm.java
int positionFloor = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); int remainder = (int) (numerator - positionFloor * scale); if (remainder == 0) { return dataset[positionFloor]; } else { double positionFrac = (double) remainder / scale; return dataset[positionFloor] + positionFrac * (dataset[positionFloor + 1] - dataset[positionFloor]);
Created: 2026-04-03 12:43 - Last Modified: 2026-03-03 05:21 - 7.3K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
int j = i & ARRAY_MASK; tmp += UnsignedLongs.divide(longs[j], divisors[j]); } return tmp; } @Benchmark long remainder(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += UnsignedLongs.remainder(longs[j], divisors[j]); } return tmp; } @Benchmark long parseUnsignedLong(int reps) { long tmp = 0;Created: 2026-04-03 12:43 - Last Modified: 2024-12-28 01:26 - 4.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
} // returns the minimum x such as x >= a && (x % b) == 0 private static int ceilToMultiple(int a, int b) { int remainder = a % b; return remainder == 0 ? a : a + b - remainder; } void assertBytes(byte[] expected) { byte[] got = out.toByteArray(); for (int i = 0; i < expected.length; i++) { assertEquals(expected[i], got[i]);Created: 2026-04-03 12:43 - Last Modified: 2025-10-28 18:19 - 8.6K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/primitives/UnsignedLongsBenchmark.java
int j = i & ARRAY_MASK; tmp += UnsignedLongs.divide(longs[j], divisors[j]); } return tmp; } @Benchmark long remainder(int reps) { long tmp = 0; for (int i = 0; i < reps; i++) { int j = i & ARRAY_MASK; tmp += UnsignedLongs.remainder(longs[j], divisors[j]); } return tmp; } @Benchmark long parseUnsignedLong(int reps) { long tmp = 0;Created: 2026-04-03 12:43 - Last Modified: 2024-12-28 01:26 - 4.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/entity/QueryContextTest.java
assertEquals("test query", queryContext.getQueryString()); assertEquals("url", queryContext.getDefaultField()); } // Test constructor with allinurl prefix and empty remainder @Test public void test_constructor_allinurlPrefixEmptyRemainder() { queryContext = new QueryContext("allinurl:", false); assertEquals("*", queryContext.getQueryString());
Created: 2026-03-31 13:07 - Last Modified: 2026-03-13 23:01 - 17.6K bytes - Click Count (0) -
internal/s3select/sql/stringfuncs.go
s = append(s, r) } } if hasLeadingPercent { return strings.HasSuffix(text, string(s)), nil } return string(s) == text, nil } // matcher - Finds `pat` in `text`, and returns the part remainder of // `text`, after the match. If leadingPercent is false, `pat` must be // the prefix of `text`, otherwise it must be a substring. func matcher(text, pat string, leadingPercent bool) (res string, match bool) {
Created: 2026-04-05 19:28 - Last Modified: 2025-02-18 16:25 - 4.2K bytes - Click Count (0)