Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for Osubtract (0.34 sec)

  1. 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)
  2. 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)
  3. 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)
  4. android/guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      @AndroidIncompatible // slow
      public void testCheckedSubtract() {
        for (int a : ALL_INTEGER_CANDIDATES) {
          for (int b : ALL_INTEGER_CANDIDATES) {
            BigInteger expectedResult = valueOf(a).subtract(valueOf(b));
            boolean expectedSuccess = fitsInInt(expectedResult);
            try {
              assertEquals(a - b, IntMath.checkedSubtract(a, b));
              assertTrue(expectedSuccess);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  5. 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)
  6. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10.6K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. guava-tests/test/com/google/common/math/IntMathTest.java

      }
    
      @AndroidIncompatible // slow
      public void testCheckedSubtract() {
        for (int a : ALL_INTEGER_CANDIDATES) {
          for (int b : ALL_INTEGER_CANDIDATES) {
            BigInteger expectedResult = valueOf(a).subtract(valueOf(b));
            boolean expectedSuccess = fitsInInt(expectedResult);
            try {
              assertEquals(a - b, IntMath.checkedSubtract(a, b));
              assertTrue(expectedSuccess);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

        assertThat(UnsignedLongs.parseUnsignedLong("1234567890abcdef", 16))
            .isEqualTo(0x1234567890abcdefL);
      }
    
      public void testParseLongWithRadixLimits() {
        BigInteger max = BigInteger.ZERO.setBit(64).subtract(ONE);
        // loops through all legal radix values.
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
          // tests can successfully parse a number string with this radix.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top