- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for testRemainder (0.23 sec)
-
android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
assertThat(b).isNotEqualTo(0); } catch (ArithmeticException e) { assertThat(b).isEqualTo(0); } } } } public void testRemainder() { for (long a : UNSIGNED_INTS) { for (long b : UNSIGNED_INTS) { try { assertThat(UnsignedInts.remainder((int) a, (int) b)).isEqualTo((int) (a % b));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 12.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 2)).isEqualTo(0x7fffffffffffffffL); 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:36:17 UTC 2024 - 13.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java
assertThat(b).isNotEqualTo(0); } catch (ArithmeticException e) { assertThat(b).isEqualTo(0); } } } } public void testRemainder() { for (long a : UNSIGNED_INTS) { for (long b : UNSIGNED_INTS) { try { assertThat(UnsignedInts.remainder((int) a, (int) b)).isEqualTo((int) (a % b));
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 06 16:10:08 UTC 2024 - 12.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java
assertThat(UnsignedLongs.divide(0xfffffffffffffffeL, 2)).isEqualTo(0x7fffffffffffffffL); 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:36:17 UTC 2024 - 13.2K bytes - Viewed (0) -
src/math/all_test.go
for i := 0; i < len(vfpow10SC); i++ { if f := Pow10(vfpow10SC[i]); !alike(pow10SC[i], f) { t.Errorf("Pow10(%d) = %g, want %g", vfpow10SC[i], f, pow10SC[i]) } } } func TestRemainder(t *testing.T) { for i := 0; i < len(vf); i++ { if f := Remainder(10, vf[i]); remainder[i] != f { t.Errorf("Remainder(10, %g) = %g, want %g", vf[i], f, remainder[i]) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// Iterate through the various n-choose-k NUMA node combinations, // looking for the combination of NUMA nodes that can best have CPUs // distributed across them. var bestBalance float64 = math.MaxFloat64 var bestRemainder []int = nil var bestCombo []int = nil acc.iterateCombinations(numas, k, func(combo []int) LoopControl { // If we've already found a combo with a balance of 0 in a
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment_test.go
mustParseCPUSet(t, "0-8,10-18,20-39,40-48,50-58,60-79"), 62, 2, "", mustParseCPUSet(t, "0-7,10-16,20-27,30-37,40-47,50-56,60-67,70-77"), }, { "ensure bestRemainder chosen with NUMA nodes that have enough CPUs to satisfy the request", topoDualSocketMultiNumaPerSocketHT, mustParseCPUSet(t, "0-3,10-13,20-23,30-36,40-43,50-53,60-63,70-76"), 34, 1, "",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 09 17:31:37 UTC 2023 - 22.7K bytes - Viewed (0)