Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,108 for Amount (0.1 sec)

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

            }
        }
    
        /**
         * Converts this amount to an equivalent amount in the specified units.
         *
         * @return The converted amount.
         */
        public Amount<Q> toUnits(Units<Q> units) {
            if (units.equals(this.units)) {
                return this;
            }
            return new Amount<>(this.units.scaleTo(value, units), units);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    	exponent = int32(-a.Dec.Scale())
    	amount := big.NewInt(0).Set(mantissa)
    	// move all factors of 10 into the exponent for easy reasoning
    	amount, times := removeBigIntFactors(amount, bigTen)
    	exponent += times
    
    	// make sure exponent is a multiple of 3
    	for exponent%3 != 0 {
    		amount.Mul(amount, bigTen)
    		exponent--
    	}
    
    	return append(out, amount.String()...), exponent
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

            23.4 | 0.567 | 23.967 | Fruit.apples
        }
    
        def "can add amounts with different units of same quantity"() {
            def sum = Amount.valueOf(valueA, unitsA) + Amount.valueOf(valueB, unitsB)
            expect:
            sum == Amount.valueOf(valueC, unitsC)
            sum.toString() == Amount.valueOf(valueC, unitsC).toString()
    
            where:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/s390x/rotate.go

    	}
    	return RotateParams{
    		Start:  start,
    		End:    end,
    		Amount: amount,
    	}
    }
    
    // RotateLeft generates a new set of parameters with the rotation amount
    // increased by the given value. The selected bits are left unchanged.
    func (r RotateParams) RotateLeft(amount uint8) RotateParams {
    	r.Amount += amount
    	r.Amount &= 63
    	return r
    }
    
    // OutMask provides a mask representing the selected bits.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 21 19:19:04 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  5. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataSeries.java

            }
    
            Amount<Q> total = get(0);
            Amount<Q> min = get(0);
            Amount<Q> max = get(0);
            for (int i = 1; i < size(); i++) {
                Amount<Q> amount = get(i);
                total = total.plus(amount);
                min = min.compareTo(amount) <= 0 ? min : amount;
                max = max.compareTo(amount) >= 0 ? max : amount;
            }
            List<Amount<Q>> sorted = Lists.newArrayList(this);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/internal/obj/s390x/rotate_test.go

    		{start: 63, end: 0, amount: 0, inMask: 1<<63 | 1, outMask: 1<<63 | 1},
    		{start: 62, end: 0, amount: 0, inMask: 1<<63 | 3, outMask: 1<<63 | 3},
    		{start: 63, end: 1, amount: 0, inMask: 3<<62 | 1, outMask: 3<<62 | 1},
    		{start: 62, end: 1, amount: 0, inMask: 3<<62 | 3, outMask: 3<<62 | 3},
    
    		// rotation
    		{start: 32, end: 63, amount: 32, inMask: 0xffffffff00000000, outMask: 0x00000000ffffffff},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:17:59 UTC 2020
    - 3.6K bytes
    - Viewed (0)
  7. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/Duration.java

        public static Amount<Duration> millis(long millis) {
            return Amount.valueOf(millis, MILLI_SECONDS);
        }
    
        public static Amount<Duration> millis(BigDecimal millis) {
            return Amount.valueOf(millis, MILLI_SECONDS);
        }
    
        public static Amount<Duration> seconds(BigDecimal seconds) {
            return Amount.valueOf(seconds, SECONDS);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/events/StatusEvent.java

    public interface StatusEvent extends ProgressEvent {
        /**
         * The amount of work already performed by the build operation.
         *
         * @return The amount of performed work
         */
        long getProgress();
    
        /**
         * The total amount of work that the build operation is in the progress of performing, or -1 if not known.
         *
         * @return The total amount of work, or -1 if not known.
         */
        long getTotal();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/measure/DataAmount.java

        public static Amount<DataAmount> bytes(long value) {
            return Amount.valueOf(value, BYTES);
        }
    
        public static Amount<DataAmount> bytes(BigDecimal value) {
            return Amount.valueOf(value, BYTES);
        }
    
        public static Amount<DataAmount> kbytes(BigDecimal value) {
            return Amount.valueOf(value, KILO_BYTES);
        }
    
        public static Amount<DataAmount> mbytes(BigDecimal value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/results/PrettyCalculator.groovy

        }
    
        static String toMillis(Amount<Duration> duration) {
            return duration.toUnits(Duration.MILLI_SECONDS).value.setScale(3, RoundingMode.HALF_UP).stripTrailingZeros().toString() + " ms"
        }
    
        static <Q> Number percentChange(Amount<Q> current, Amount<Q> previous) {
            if (previous == Amount.valueOf(0, previous.getUnits())) {
                return 100 as Integer
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
Back to top