Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for Osubtract (0.2 sec)

  1. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        checkBigIntegerConversion(
            "::ffff:ffff:ffff:ffff", BigInteger.ONE.shiftLeft(64).subtract(BigInteger.ONE));
        checkBigIntegerConversion(
            "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff",
            BigInteger.ONE.shiftLeft(128).subtract(BigInteger.ONE));
      }
    
      public void testFromIpv4BigIntegerInputTooLarge() {
        IllegalArgumentException expected =
            assertThrows(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          for (long b : TEST_LONGS) {
            UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
            UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
            long expected =
                aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).longValue();
            UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned);
            assertThat(unsignedSub.longValue()).isEqualTo(expected);
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/SMB1SigningDigest.java

                // in DST
                if ( cfg.getLocalTimezone().inDaylightTime(new Date(t)) ) {
                    // t also in DST so no correction
                }
                else {
                    // t not in DST so subtract 1 hour
                    t -= 3600000;
                }
            }
            else {
                // not in DST
                if ( cfg.getLocalTimezone().inDaylightTime(new Date(t)) ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Sun Aug 05 09:45:59 GMT 2018
    - 10.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

              double z = aa.getAndUpdate(i, value -> value + y);
              assertBitEquals(x, z);
              assertBitEquals(x + y, aa.get(i));
            }
          }
        }
      }
    
      /** getAndUpdate subtracts given value to current, and returns previous value */
      public void testGetAndUpdateWithSubtract() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i : new int[] {0, SIZE - 1}) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/LongMathTest.java

      }
    
      @AndroidIncompatible // slow
      public void testLessThanBranchFree() {
        for (long x : ALL_LONG_CANDIDATES) {
          for (long y : ALL_LONG_CANDIDATES) {
            BigInteger difference = BigInteger.valueOf(x).subtract(BigInteger.valueOf(y));
            if (fitsInLong(difference)) {
              int expected = (x < y) ? 1 : 0;
              int actual = LongMath.lessThanBranchFree(x, y);
              assertEquals(expected, actual);
            }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

        requireLinks()[i] = value;
      }
    
      /*
       * We don't define getPredecessor+getSuccessor and setPredecessor+setSuccessor here because
       * they're defined above -- including logic to add and subtract 1 to map between the values stored
       * in the predecessor/successor arrays and the indexes in the elements array that they identify.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/math/BigDecimalMathTest.java

        new RoundToDoubleTester(minDoubleAsBD).setExpectation(-Double.MAX_VALUE, values()).test();
      }
    
      public void testRoundToDouble_minDoubleMinusOne() {
        BigDecimal minDoubleAsBD = new BigDecimal(-Double.MAX_VALUE).subtract(BigDecimal.ONE);
        new RoundToDoubleTester(minDoubleAsBD)
            .setExpectation(-Double.MAX_VALUE, DOWN, CEILING, HALF_EVEN, HALF_UP, HALF_DOWN)
            .setExpectation(Double.NEGATIVE_INFINITY, UP, FLOOR)
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/UnsignedLongTest.java

          for (long b : TEST_LONGS) {
            UnsignedLong aUnsigned = UnsignedLong.fromLongBits(a);
            UnsignedLong bUnsigned = UnsignedLong.fromLongBits(b);
            long expected =
                aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).longValue();
            UnsignedLong unsignedSub = aUnsigned.minus(bUnsigned);
            assertThat(unsignedSub.longValue()).isEqualTo(expected);
          }
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactLinkedHashMap.java

        requireLinks()[i] = value;
      }
    
      /*
       * We don't define getPredecessor+getSuccessor and setPredecessor+setSuccessor here because
       * they're defined above -- including logic to add and subtract 1 to map between the values stored
       * in the predecessor/successor arrays and the indexes in the elements array that they identify.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/Dfs.java

            while (ki > 1 && key.charAt(ki - 1) == '\\') {
                ki--;
            }
            if (ki < key.length()) {
                key = key.substring(0, ki);
            }
    
            /* Subtract the server and share from the pathConsumed so that
             * it refects the part of the relative path consumed and not
             * the entire path.
             */
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 11.7K bytes
    - Viewed (0)
Back to top