Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for longval2 (0.06 sec)

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

      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          exponents[i] = randomExponent();
          positive[i] = randomPositiveBigInteger(Long.SIZE - 1).longValue();
          nonnegative[i] = randomNonNegativeBigInteger(Long.SIZE - 1).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
          factorialArguments[i] = RANDOM_SOURCE.nextInt(30);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/LongConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Long) {
                return (Long) o;
            } else if (o instanceof Number) {
                return ((Number) o).longValue();
            } else if (o instanceof String) {
                return toLong((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/DoubleUtils.java

        BigInteger absX = x.abs();
        int exponent = absX.bitLength() - 1;
        // exponent == floor(log2(abs(x)))
        if (exponent < Long.SIZE - 1) {
          return x.longValue();
        } else if (exponent > MAX_EXPONENT) {
          return x.signum() * POSITIVE_INFINITY;
        }
    
        /*
         * We need the top SIGNIFICAND_BITS + 1 bits, including the "implicit" one bit. To make rounding
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

            if (!isDigits(s)) {
                return null;
            }
    
            try {
                long longValue = Long.parseLong(s);
                if (longValue > Integer.MAX_VALUE) {
                    return null;
                }
                return (int) longValue;
            } catch (NumberFormatException e) {
                // should never happen since checked isDigits(s) before
                return null;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/indexer/IndexUpdater.java

            if (!arList.isEmpty()) {
                final long commitMarginTime = fessConfig.getIndexerWebfsCommitMarginTimeAsInteger().longValue();
                for (final AccessResult<?> ar : arList.toArray(new AccessResult[arList.size()])) {
                    if (ar.getCreateTime().longValue() > execTime - commitMarginTime) {
                        arList.remove(ar);
                    }
                }
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:20:39 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

          at.set(x);
          assertEquals((int) x, at.intValue());
        }
      }
    
      /** longValue returns current value. */
      public void testLongValue() {
        AtomicDouble at = new AtomicDouble();
        assertEquals(0L, at.longValue());
        for (double x : VALUES) {
          at.set(x);
          assertEquals((long) x, at.longValue());
        }
      }
    
      /** floatValue returns current value. */
      public void testFloatValue() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

      @BeforeExperiment
      void setUp() {
        for (int i = 0; i < ARRAY_SIZE; i++) {
          positive[i] = randomPositiveBigInteger(Long.SIZE - 2).longValue();
          nonzero[i] = randomNonZeroBigInteger(Long.SIZE - 2).longValue();
          longs[i] = RANDOM_SOURCE.nextLong();
        }
      }
    
      @Benchmark
      int log2(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/backup/AdminBackupAction.java

                }).collect(Collectors.joining(","));
                buf.append(json);
                buf.append('}');
            } else if (value instanceof Long || value instanceof Integer) {
                buf.append(((Number) value).longValue());
            } else if (value instanceof Number) {
                buf.append(((Number) value).doubleValue());
            } else {
                buf.append('"').append(StringEscapeUtils.escapeJson(value.toString())).append('"');
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 12 01:54:46 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/DefaultsTest.java

        assertEquals(0, Defaults.defaultValue(short.class).shortValue());
        assertEquals(0, Defaults.defaultValue(int.class).intValue());
        assertEquals(0, Defaults.defaultValue(long.class).longValue());
        assertEquals(0.0f, Defaults.defaultValue(float.class).floatValue());
        assertThat(Defaults.defaultValue(double.class).doubleValue()).isEqualTo(0.0d);
        assertNull(Defaults.defaultValue(void.class));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 03 18:10:55 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/LongAdder.java

     * (method {@link #add}) are contended across threads, the set of variables may grow dynamically to
     * reduce contention. Method {@link #sum} (or, equivalently, {@link #longValue}) returns the current
     * total combined across the variables maintaining the sum.
     *
     * <p>This class is usually preferable to {@link AtomicLong} when multiple threads update a common
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 15 18:00:07 UTC 2021
    - 5.5K bytes
    - Viewed (0)
Back to top