Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for signum (0.03 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

          int i = rnd.nextInt(left.length);
          left[i] ^= (byte) (1 + rnd.nextInt(255));
          assertThat(signum(comparator1.compare(left, right)))
              .isEqualTo(signum(UnsignedBytes.compare(left[i], right[i])));
          assertThat(signum(comparator2.compare(left, right)))
              .isEqualTo(signum(UnsignedBytes.compare(left[i], right[i])));
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

            int expected = DoubleMath.fuzzyEquals(a, b, tolerance) ? 0 : Double.compare(a, b);
            int actual = DoubleMath.fuzzyCompare(a, b, tolerance);
            assertEquals(Integer.signum(expected), Integer.signum(actual));
          }
        }
      }
    
      public void testFuzzyCompareBadTolerance() {
        for (double tolerance : BAD_TOLERANCE_CANDIDATES) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            BigIntegerMath.SQRT2_PRECOMPUTED_BITS);
      }
    
      public void testIsPowerOfTwo() {
        for (BigInteger x : ALL_BIGINTEGER_CANDIDATES) {
          // Checks for a single bit set.
          boolean expected = x.signum() > 0 & x.and(x.subtract(ONE)).equals(ZERO);
          assertEquals(expected, BigIntegerMath.isPowerOfTwo(x));
        }
      }
    
      public void testLog2ZeroAlwaysThrows() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Nov 19 01:35:24 UTC 2025
    - 27.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/LongMath.java

         * deal with the cases where rounding towards 0 is wrong, which typically depends on the sign of
         * p / q.
         *
         * signum is 1 if p and q are both nonnegative or both negative, and -1 otherwise.
         */
        int signum = 1 | (int) ((p ^ q) >> (Long.SIZE - 1));
        boolean increment;
        switch (mode) {
          case UNNECESSARY:
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 03 21:01:09 UTC 2025
    - 46.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/CharsTest.java

      @SuppressWarnings("InlineMeInliner")
      public void testCompare() {
        for (char x : VALUES) {
          for (char y : VALUES) {
            assertWithMessage("%s, %s", x, y)
                .that(Math.signum(Chars.compare(x, y)))
                .isEqualTo(Math.signum(Character.compare(x, y)));
          }
        }
      }
    
      public void testContains() {
        assertThat(Chars.contains(EMPTY, (char) 1)).isFalse();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/DoubleMathTest.java

            int expected = DoubleMath.fuzzyEquals(a, b, tolerance) ? 0 : Double.compare(a, b);
            int actual = DoubleMath.fuzzyCompare(a, b, tolerance);
            assertEquals(Integer.signum(expected), Integer.signum(actual));
          }
        }
      }
    
      public void testFuzzyCompareBadTolerance() {
        for (double tolerance : BAD_TOLERANCE_CANDIDATES) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  7. okhttp-tls/README.md

    Certificate Authorities
    -----------------------
    
    The above example uses a self-signed certificate. This is convenient for testing but not
    representative of real-world HTTPS deployment. To get closer to that we can use `HeldCertificate`
    to generate a trusted root certificate, an intermediate certificate, and a server certificate.
    We use `certificateAuthority(int)` to create certificates that can sign other certificates. The
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Thu Oct 30 21:39:59 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Ints.java

        }
    
        @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
      }
    
      /**
       * Parses the specified string as a signed decimal integer value. The ASCII character {@code '-'}
       * (<code>'&#92;u002D'</code>) is recognized as the minus sign.
       *
       * <p>Unlike {@link Integer#parseInt(String)}, this method returns {@code null} instead of
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Oct 22 18:14:49 UTC 2025
    - 31.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/InternersTest.java

        Interner<MyInt> pool = Interners.newWeakInterner();
        assertSame(canonical, pool.intern(canonical));
    
        WeakReference<MyInt> signal = new WeakReference<>(canonical);
        canonical = null; // Hint to the JIT that canonical is unreachable
    
        GcFinalization.awaitClear(signal);
        assertSame(not, pool.intern(not));
      }
    
      private static final class MyInt {
        private final int i;
    
        MyInt(int i) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 08 17:02:07 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dispatcher.kt

      }
    
      /** Used by [Call.execute] to signal it is in-flight. */
      @Synchronized
      internal fun executed(call: RealCall) = runningSyncCalls.add(call)
    
      /** Used by [AsyncCall.run] to signal completion. */
      internal fun finished(call: AsyncCall) {
        promoteAndExecute(finishedAsyncCall = call)
      }
    
      /** Used by [Call.execute] to signal completion. */
      internal fun finished(call: RealCall) {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 14:16:22 UTC 2025
    - 9.9K bytes
    - Viewed (0)
Back to top