Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 71 - 80 of 955 for moge (0.02 seconds)

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

        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += BigIntegerMath.log2(positive[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      int log10(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += BigIntegerMath.log10(positive[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      int sqrt(int reps) {
        int tmp = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/core/lang/ClassUtilTest.java

            String[] ret = ClassUtil.splitPackageAndShortClassName("aaa.Hoge");
            assertThat(ret[0], is("aaa"));
            assertThat(ret[1], is("Hoge"));
            ret = ClassUtil.splitPackageAndShortClassName("Hoge");
            assertThat(ret[0], is(nullValue()));
            assertThat(ret[1], is("Hoge"));
        }
    
        /**
         *
         */
        @Test
        public void testConvertClass() {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Sat May 10 01:32:17 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(IllegalArgumentException.class, () -> LongMath.log2(0L, mode));
        }
      }
    
      public void testLog2NegativeAlwaysThrows() {
        for (long x : NEGATIVE_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(IllegalArgumentException.class, () -> LongMath.log2(x, mode));
          }
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Oct 30 14:15:36 GMT 2025
    - 31.4K bytes
    - Click Count (0)
  4. android/guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

      @Param({"20", "200", "2000"})
      int stackDepth;
    
      @Param({"-1", "3", "15"})
      int breakAt;
    
      int recursionCount;
    
      private static final Object duh = new Object();
    
      @Param Mode mode;
    
      enum Mode {
        LAZY_STACK_TRACE {
          @Override
          List<StackTraceElement> getStackTrace(Throwable t) {
            return lazyStackTrace(t);
          }
        },
        GET_STACK_TRACE {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  5. guava-tests/benchmark/com/google/common/base/LazyStackTraceBenchmark.java

      @Param({"20", "200", "2000"})
      int stackDepth;
    
      @Param({"-1", "3", "15"})
      int breakAt;
    
      int recursionCount;
    
      private static final Object duh = new Object();
    
      @Param Mode mode;
    
      enum Mode {
        LAZY_STACK_TRACE {
          @Override
          List<StackTraceElement> getStackTrace(Throwable t) {
            return lazyStackTrace(t);
          }
        },
        GET_STACK_TRACE {
          @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/core/nio/ChannelUtil.java

         * @param mode
         *            The mode. Must not be {@literal null}.
         * @return A {@link ByteBuffer} that maps the file channel to memory.
         */
        public static ByteBuffer map(final FileChannel channel, final MapMode mode) {
            assertArgumentNotNull("channel", channel);
            assertArgumentNotNull("mode", mode);
    
            try {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

          val afterBoundaryOptions =
            Options.of(
              // 0.  "\r\n"  More parts.
              "\r\n".encodeUtf8(),
              // 1.  "--"    No more parts.
              "--".encodeUtf8(),
              // 2.  " "     Optional whitespace. Only used if there are more parts.
              " ".encodeUtf8(),
              // 3.  "\t"    Optional whitespace. Only used if there are more parts.
              "\t".encodeUtf8(),
            )
        }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/math/MathPreconditions.java

        if (!condition) {
          throw new ArithmeticException("mode was UNNECESSARY, but rounding was necessary");
        }
      }
    
      static void checkInRangeForRoundingInputs(boolean condition, double input, RoundingMode mode) {
        if (!condition) {
          throw new ArithmeticException(
              "rounded value is out of range for input " + input + " and rounding mode " + mode);
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 3.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/math/ToDoubleRounder.java

      /** Returns d's value as an X, rounded with the specified mode. */
      abstract X toX(double d, RoundingMode mode);
    
      /** Returns a - b, guaranteed that both arguments are nonnegative. */
      abstract X minus(X a, X b);
    
      /** Rounds {@code x} to a {@code double}. */
      final double roundToDouble(X x, RoundingMode mode) {
        checkNotNull(x, "x");
        checkNotNull(mode, "mode");
        double roundArbitrarily = roundToDoubleArbitrarily(x);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 04:51:56 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  10. guava-tests/benchmark/com/google/common/math/LongMathRoundingBenchmark.java

        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += LongMath.log2(positive[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      int log10(int reps) {
        int tmp = 0;
        for (int i = 0; i < reps; i++) {
          int j = i & ARRAY_MASK;
          tmp += LongMath.log10(positive[j], mode);
        }
        return tmp;
      }
    
      @Benchmark
      int sqrt(int reps) {
        int tmp = 0;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.6K bytes
    - Click Count (0)
Back to Top