Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for intValue (0.15 sec)

  1. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

          int j = i & ARRAY_MASK;
          tmp += oldSlowFactorial(slowFactorials[j]).intValue();
        }
        return tmp;
      }
    
      @Benchmark
      int factorial(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += BigIntegerMath.factorial(factorials[j]).intValue();
        }
        return tmp;
      }
    
      @Benchmark
      int binomial(int reps) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInInt(expectedResult)) {
            assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x));
          } else {
            assertThrows(ArithmeticException.class, () -> IntMath.ceilingPowerOfTwo(x));
          }
        }
      }
    
      public void testFloorPowerOfTwo() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

                    + "weakKeys,weakValues,expireAfterAccess=10m,expireAfterWrite=1h");
        assertEquals(10, spec.initialCapacity.intValue());
        assertEquals(20, spec.maximumSize.intValue());
        assertNull(spec.maximumWeight);
        assertEquals(30, spec.concurrencyLevel.intValue());
        assertEquals(Strength.WEAK, spec.keyStrength);
        assertEquals(Strength.WEAK, spec.valueStrength);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(1, ContiguousSet.create(Range.open(0, 4), integers()).first().intValue());
        assertEquals(
            Integer.MIN_VALUE,
            ContiguousSet.create(Range.<Integer>all(), integers()).first().intValue());
      }
    
      public void testLast() {
        assertEquals(3, ContiguousSet.create(Range.closed(1, 3), integers()).last().intValue());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

          int j = i & ARRAY_MASK;
          tmp += oldSlowFactorial(slowFactorials[j]).intValue();
        }
        return tmp;
      }
    
      @Benchmark
      int factorial(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += BigIntegerMath.factorial(factorials[j]).intValue();
        }
        return tmp;
      }
    
      @Benchmark
      int binomial(int reps) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 19 16:21:24 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/IntMathTest.java

        for (int x : POSITIVE_INTEGER_CANDIDATES) {
          BigInteger expectedResult = BigIntegerMath.ceilingPowerOfTwo(BigInteger.valueOf(x));
          if (fitsInInt(expectedResult)) {
            assertEquals(expectedResult.intValue(), IntMath.ceilingPowerOfTwo(x));
          } else {
            assertThrows(ArithmeticException.class, () -> IntMath.ceilingPowerOfTwo(x));
          }
        }
      }
    
      public void testFloorPowerOfTwo() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/CacheBuilderSpecTest.java

                    + "weakKeys,weakValues,expireAfterAccess=10m,expireAfterWrite=1h");
        assertEquals(10, spec.initialCapacity.intValue());
        assertEquals(20, spec.maximumSize.intValue());
        assertNull(spec.maximumWeight);
        assertEquals(30, spec.concurrencyLevel.intValue());
        assertEquals(Strength.WEAK, spec.keyStrength);
        assertEquals(Strength.WEAK, spec.valueStrength);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 19.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

      }
    
      public void testIntValue() {
        for (long a : TEST_LONGS) {
          UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
          int intValue = aUnsigned.bigIntegerValue().intValue();
          assertThat(aUnsigned.intValue()).isEqualTo(intValue);
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // serialization
      public void testSerialization() {
        for (long a : TEST_LONGS) {
    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. build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/metadata/KotlinMetadataQueries.kt

     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility.metadata
    
    import gradlebuild.binarycompatibility.intArrayValue
    import gradlebuild.binarycompatibility.intValue
    import gradlebuild.binarycompatibility.stringArrayValue
    import gradlebuild.binarycompatibility.stringValue
    import javassist.CtClass
    import javassist.CtConstructor
    import javassist.CtField
    import javassist.CtMember
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 12:41:59 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

        assertEquals(1, ContiguousSet.create(Range.open(0, 4), integers()).first().intValue());
        assertEquals(
            Integer.MIN_VALUE,
            ContiguousSet.create(Range.<Integer>all(), integers()).first().intValue());
      }
    
      public void testLast() {
        assertEquals(3, ContiguousSet.create(Range.closed(1, 3), integers()).last().intValue());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top