Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for approx (0.14 sec)

  1. src/internal/trace/mud_test.go

    			inv, ok2 := mud.invCumulativeSum(trackMass)
    
    			if mass < trackMass {
    				if ok {
    					t.Errorf("approx(%g) = [%g, %g), but mass = %g", trackMass, l, u, mass)
    				}
    				if ok2 {
    					t.Errorf("exact(%g) = %g, but mass = %g", trackMass, inv, mass)
    				}
    			} else {
    				if !ok {
    					t.Errorf("approx(%g) failed, but mass = %g", trackMass, mass)
    				}
    				if !ok2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. testing/internal-testing/src/test/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpecTest.groovy

            }
            def failure = null
            try {
                assert operation.runAndWait.duration in approx(5000)
            } catch (AssertionError e) {
                failure = e
            }
    
            then:
            failure != null
            failure.message.contains('operation.runAndWait.duration in approx(5000)')
        }
    
        def "can use instants to test that method executes one thing at a time"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  3. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/Range.groovy

    /**
     * A range of time.
     */
    class Range {
        private final long millis
    
        Range(long millis) {
            this.millis = millis
        }
    
        @Override
        String toString() {
            return "[approx $millis millis]"
        }
    
        boolean isCase(Duration duration) {
            def actualMillis = duration.millis
            return actualMillis > millis - 500 && actualMillis < millis + 2000
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/daemon/server/health/gc/GarbageCollectionInfo.java

     */
    
    package org.gradle.launcher.daemon.server.health.gc;
    
    import java.lang.management.GarbageCollectorMXBean;
    import java.lang.management.ManagementFactory;
    
    public class GarbageCollectionInfo {
        /**
         * Approx. time spent in gc. See {@link GarbageCollectorMXBean}
         */
        public long getCollectionTime() {
            long garbageCollectionTime = 0;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  5. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/concurrent/ConcurrentSpec.groovy

         */
        void start(Runnable action) {
            executor.execute(action)
        }
    
        /**
         * Returns a range that contains the given milliseconds +/- some error margin
         */
        Range approx(long millis) {
            return new Range(millis)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/store/ResolutionResultsStoreFactory.java

        public ResolutionResultsStoreFactory(TemporaryFileProvider temp) {
            this(temp, DEFAULT_MAX_SIZE);
        }
    
        /**
         * @param temp - Provider of temporary files.
         * @param maxSize - indicates the approx. maximum size of the binary store that will trigger rolling of the file
         */
        ResolutionResultsStoreFactory(TemporaryFileProvider temp, int maxSize) {
            this.temp = temp;
            this.maxSize = maxSize;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. cmd/erasure-coding.go

    // produces an incorrect value it fails with a hard error.
    //
    // erasureSelfTest tries to catch any issue in the erasure implementation
    // early instead of silently corrupting data.
    func erasureSelfTest() {
    	// Approx runtime ~1ms
    	var testConfigs [][2]uint8
    	for total := uint8(4); total < 16; total++ {
    		for data := total / 2; data < total; data++ {
    			parity := total - data
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

        SymbolTable table(root);
        (void)table.renameToUnique(func, {});
    
        rewriter.setInsertionPointAfter(output_mul);
        auto composite_attrs = rewriter.getDictionaryAttr(
            {rewriter.getNamedAttr("approx", rewriter.getBoolAttr(false))});
        auto composite_op = rewriter.create<stablehlo::CompositeOp>(
            output_mul.getLoc(), func.getResultTypes()[0],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. test/codegen/math.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package codegen
    
    import "math"
    
    var sink64 [8]float64
    
    func approx(x float64) {
    	// amd64/v2:-".*x86HasSSE41" amd64/v3:-".*x86HasSSE41"
    	// amd64:"ROUNDSD\t[$]2"
    	// s390x:"FIDBR\t[$]6"
    	// arm64:"FRINTPD"
    	// ppc64x:"FRIP"
    	// wasm:"F64Ceil"
    	sink64[0] = math.Ceil(x)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 15:24:29 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/runtime/histogram.go

    	//
    	// Following this pattern, bucket 38 will have the bit 46 set. We don't
    	// have any buckets for higher values, so we spill the rest into an overflow
    	// bucket containing values of 2^47-1 nanoseconds or approx. 1 day or more.
    	// This range is more than enough to handle durations produced by the runtime.
    	timeHistMinBucketBits = 9
    	timeHistMaxBucketBits = 48 // Note that this is exclusive; 1 higher than the actual range.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top