Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 229 for Subtract (1.26 sec)

  1. 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)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/primitives/UnsignedIntegerTest.java

            UnsignedInteger aUnsigned = UnsignedInteger.fromIntBits(a);
            UnsignedInteger bUnsigned = UnsignedInteger.fromIntBits(b);
            int expected =
                force32(aUnsigned.bigIntegerValue().subtract(bUnsigned.bigIntegerValue()).intValue());
            UnsignedInteger unsignedSub = aUnsigned.minus(bUnsigned);
            assertThat(unsignedSub.intValue()).isEqualTo(expected);
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 9.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir

      %40 = mhlo.subtract %39, %37 : tensor<1x64x32x32xf32>
      %41 = mhlo.multiply %40, %28 : tensor<1x64x32x32xf32>
      %42 = mhlo.add %37, %41 : tensor<1x64x32x32xf32>
      %43 = mhlo.subtract %42, %30 : tensor<1x64x32x32xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  5. cmd/bitrot.go

    	for left > 0 {
    		// Read expected hash...
    		h.Reset()
    		n, err := io.ReadFull(r, hashBuf)
    		if err != nil {
    			// Read's failed for object with right size, file is corrupt.
    			return err
    		}
    		// Subtract hash length..
    		left -= int64(n)
    		if left < shardSize {
    			shardSize = left
    		}
    
    		read, err := io.CopyBuffer(h, io.LimitReader(r, shardSize), *bufp)
    		if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. 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);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  7. 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)) ) {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Aug 05 09:45:59 UTC 2018
    - 10.6K bytes
    - Viewed (0)
  8. platforms/jvm/code-quality/src/main/groovy/org/gradle/api/plugins/quality/PmdPlugin.java

            // classpath of the test sourceSet contains output of the main sourceSet.
            taskMapping.map("classpath", () -> {
                // It is important to subtract compileClasspath and not pmdAuxClasspath here because these configurations are resolved differently (as a compile and as a
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 18:07:00 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  9. src/math/big/decimal.go

    			shr(x, maxShift)
    			shift += maxShift
    		}
    		shr(x, uint(-shift))
    	}
    }
    
    // shr implements x >> s, for s <= maxShift.
    func shr(x *decimal, s uint) {
    	// Division by 1<<s using shift-and-subtract algorithm.
    
    	// pick up enough leading digits to cover first shift
    	r := 0 // read index
    	var n Word
    	for n>>s == 0 && r < len(x.mant) {
    		ch := Word(x.mant[r])
    		r++
    		n = n*10 + ch - '0'
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 29 22:45:29 UTC 2020
    - 6.6K bytes
    - Viewed (0)
  10. src/runtime/sys_plan9_arm.s

    	MOVW	$0,R7
    	MULALU	R2,R3,(R7,R6)
    
    	// unscale by discarding low 32 bits, shifting the rest by 29
    	MOVW	R6>>29,R6		// R6:R7 = (R5:R6:R7 >> 61)
    	ORR	R7<<3,R6
    	MOVW	R7>>29,R7
    
    	// subtract (10**9 * sec) from nsec to get nanosecond remainder
    	MOVW	$1000000000, R5		// 10**9
    	MULLU	R6,R5,(R9,R8)		// R8:R9 = R6:R7 * R5
    	MULA	R7,R5,R9,R9
    	SUB.S	R8,R1			// R1:R2 -= R8:R9
    	SBC	R9,R2
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 29 14:15:04 UTC 2021
    - 7K bytes
    - Viewed (0)
Back to top