Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 112 for MULTIPLY (0.62 sec)

  1. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataSeries.java

            for (Amount<Q> amount : this) {
                BigDecimal diff = amount.toUnits(baseUnits).getValue();
                diff = diff.subtract(averageValue);
                diff = diff.multiply(diff);
                sumSquares = sumSquares.add(diff);
            }
            // This isn't quite right, as we may lose precision when converting to a double
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/preflight/checks_linux.go

    	err := syscall.Sysinfo(&info)
    	if err != nil {
    		errorList = append(errorList, errors.Wrapf(err, "failed to get system info"))
    	}
    
    	// Totalram holds the total usable memory. Unit holds the size of a memory unit in bytes. Multiply them and convert to MB
    	actual := uint64(info.Totalram) * uint64(info.Unit) / 1024 / 1024
    	if actual < mc.Mem {
    		errorList = append(errorList, errors.Errorf("the system RAM (%d MB) is less than the minimum %d MB", actual, mc.Mem))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/platform/internal/ReadelfBinaryInfoTest.groovy

        18: 0000000000403dc0     0 OBJECT  LOCAL  DEFAULT   20 __frame_dummy_in[...]
        19: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS sum.cpp
        20: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS multiply.cpp
        21: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS crtstuff.c
        22: 00000000004021e0     0 OBJECT  LOCAL  DEFAULT   19 __FRAME_END__
        23: 0000000000000000     0 FILE    LOCAL  DEFAULT  ABS
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 23:09:11 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/cost.go

    				sz = listSize.Multiply(elemSize)
    			}
    
    			if len(args) > 0 {
    				sepSize := l.sizeEstimate(args[0])
    				minSeparators := uint64(0)
    				maxSeparators := uint64(0)
    				if listSize.Min > 0 {
    					minSeparators = listSize.Min - 1
    				}
    				if listSize.Max > 0 {
    					maxSeparators = listSize.Max - 1
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. src/runtime/mksizeclasses.go

    // pages into objects of the given size wastes at most 12.5% (1.125x)
    // of the memory. It is not necessary that the cutoff here be
    // the same as above.
    //
    // The two sources of waste multiply, so the worst possible case
    // for the above constraints would be that allocations of some
    // size might have a 26.6% (1.266x) overhead.
    // In practice, only one of the wastes comes into play for a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 20:31:27 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. src/math/big/natdiv.go

    We can ensure that v has a large top digit by multiplying both u and v by the
    right amount. Continuing the example, if we multiply both 172 and 19 by 3, we
    now have ⌊516/57⌋, the leading digit of v is now ≥ 5, and sure enough
    ⌊51/5⌋ = 10 is much closer to the correct answer 9. It would be easier here
    to multiply by 4, because that can be done with a shift. Specifically, we can
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

            try {
              BigInteger quotient = BigIntegerMath.divide(p, q, UNNECESSARY);
              BigInteger undone = quotient.multiply(q);
              if (!p.equals(undone)) {
                failFormat("expected %s.multiply(%s) = %s; got %s", quotient, q, p, undone);
              }
              assertTrue(dividesEvenly);
            } catch (ArithmeticException e) {
              assertFalse(dividesEvenly);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. src/strconv/itoa.go

    	// We use uint values where we can because those will
    	// fit into a single register even on a 32bit machine.
    	if base == 10 {
    		// common case: use constants for / because
    		// the compiler can optimize it into a multiply+shift
    
    		if host32bit {
    			// convert the lower digits using 32bit operations
    			for u >= 1e9 {
    				// Avoid using r = a%b in addition to q = a/b
    				// since 64bit division and modulo operations
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:28 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. src/crypto/aes/aes_test.go

    	p := 1
    	for i := 0; i < len(powx); i++ {
    		if powx[i] != byte(p) {
    			t.Errorf("powx[%d] = %#x, want %#x", i, powx[i], p)
    		}
    		p <<= 1
    		if p&0x100 != 0 {
    			p ^= poly
    		}
    	}
    }
    
    // Multiply b and c as GF(2) polynomials modulo poly
    func mul(b, c uint32) uint32 {
    	i := b
    	j := c
    	s := uint32(0)
    	for k := uint32(1); k < 0x100 && j != 0; k <<= 1 {
    		// Invariant: k == 1<<n, i == b * xⁿ
    
    		if j&k != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/math/LongMath.java

                  // It's definitely safe to multiply into numerator and denominator.
                  numerator *= n;
                  denominator *= i;
                  numeratorBits += nBits;
                } else {
                  // It might not be safe to multiply into numerator and denominator,
                  // so multiply (numerator / denominator) into result.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
Back to top