Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for subtract (0.29 sec)

  1. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      }
    
      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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/DiscreteDomain.java

          return value.subtract(BigInteger.ONE);
        }
    
        @Override
        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
          return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue();
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  3. src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js

                if (cal.hasClass('left')) {
                    this.leftCalendar.month.subtract(1, 'month');
                    if (this.linkedCalendars)
                        this.rightCalendar.month.subtract(1, 'month');
                } else {
                    this.rightCalendar.month.subtract(1, 'month');
                }
                this.updateCalendars();
            },
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/DirectExecutorService.java

            } else if (nanos <= 0) {
              return false;
            } else {
              long now = System.nanoTime();
              NANOSECONDS.timedWait(lock, nanos);
              nanos -= System.nanoTime() - now; // subtract the actual time we waited
            }
          }
        }
      }
    
      /**
       * Checks if the executor has been shut down and increments the running task count.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/BigDecimalMath.java

        }
    
        @Override
        BigDecimal toX(double d, RoundingMode mode) {
          return new BigDecimal(d);
        }
    
        @Override
        BigDecimal minus(BigDecimal a, BigDecimal b) {
          return a.subtract(b);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/asm/testdata/riscv64.s

    	VL8RE64V	(X10), V8			// 077485e2
    	VS1RV		V3, (X11)			// a7818502
    	VS2RV		V2, (X11)			// 27818522
    	VS4RV		V4, (X11)			// 27828562
    	VS8RV		V8, (X11)			// 278485e2
    
    	// 31.11.1: Vector Single-Width Integer Add and Subtract
    	VADDVV		V1, V2, V3			// d7812002
    	VADDVV		V1, V2, V0, V3			// d7812000
    	VADDVX		X10, V2, V3			// d7412502
    	VADDVX		X10, V2, V0, V3			// d7412500
    	VADDVI		$15, V2, V3			// d7b12702
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed May 21 14:19:19 UTC 2025
    - 49.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/DiscreteDomain.java

          return value.subtract(BigInteger.ONE);
        }
    
        @Override
        BigInteger offset(BigInteger origin, long distance) {
          checkNonnegative(distance, "distance");
          return origin.add(BigInteger.valueOf(distance));
        }
    
        @Override
        public long distance(BigInteger start, BigInteger end) {
          return end.subtract(start).max(MIN_LONG).min(MAX_LONG).longValue();
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/math/BigDecimalMath.java

        }
    
        @Override
        BigDecimal toX(double d, RoundingMode mode) {
          return new BigDecimal(d);
        }
    
        @Override
        BigDecimal minus(BigDecimal a, BigDecimal b) {
          return a.subtract(b);
        }
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/DirectExecutorService.java

            } else if (nanos <= 0) {
              return false;
            } else {
              long now = System.nanoTime();
              NANOSECONDS.timedWait(lock, nanos);
              nanos -= System.nanoTime() - now; // subtract the actual time we waited
            }
          }
        }
      }
    
      /**
       * Checks if the executor has been shut down and increments the running task count.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/MathTesting.java

                513,
                Double.MAX_EXPONENT - 1,
                Double.MAX_EXPONENT,
                Double.MAX_EXPONENT + 1)) {
          BigInteger x = ONE.shiftLeft(exponent);
          bigValues.add(x, x.add(ONE), x.subtract(ONE));
        }
        bigValues.add(new BigInteger("218838949120258359057546633")); // sqrt(2^175) rounded up and
        // down
        bigValues.add(new BigInteger("218838949120258359057546634"));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top