Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for Xacc (0.04 sec)

  1. src/math/big/float_test.go

    		}
    		if got := x.Prec(); got != prec {
    			t.Errorf("%s.SetPrec(%d).Prec() == %d; want %d", test.x, test.prec, got, prec)
    		}
    		if got, acc := x.String(), x.Acc(); got != test.want || acc != test.acc {
    			t.Errorf("%s.SetPrec(%d) = %s (%s); want %s (%s)", test.x, test.prec, got, acc, test.want, test.acc)
    		}
    	}
    }
    
    func TestFloatMinPrec(t *testing.T) {
    	const max = 100
    	for _, test := range []struct {
    		x    string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  2. src/internal/trace/gc.go

    	}
    
    	if len(acc.wHeap) < acc.nWorst {
    		// We don't have N windows yet, so keep accumulating.
    		acc.bound = 1.0
    	} else {
    		// Anything above the least worst window has no effect.
    		acc.bound = math.Max(acc.bound, acc.wHeap[0].MutatorUtil)
    	}
    
    	if acc.mud != nil {
    		if acc.lastTime != math.MaxInt64 {
    			// Update distribution.
    			acc.mud.add(acc.lastMU, mu, float64(time-acc.lastTime))
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  3. src/math/big/floatexample_test.go

    	z.Add(&x, &y)
    	fmt.Printf("x = %.10g (%s, prec = %d, acc = %s)\n", &x, x.Text('p', 0), x.Prec(), x.Acc())
    	fmt.Printf("y = %.10g (%s, prec = %d, acc = %s)\n", &y, y.Text('p', 0), y.Prec(), y.Acc())
    	fmt.Printf("z = %.10g (%s, prec = %d, acc = %s)\n", &z, z.Text('p', 0), z.Prec(), z.Acc())
    	// Output:
    	// x = 1000 (0x.fap+10, prec = 64, acc = Exact)
    	// y = 2.718281828 (0x.adf85458248cd8p+2, prec = 53, acc = Exact)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/MessageBuilderHelper.java

        }
    
        static Collection<String> pathTo(EdgeState edge, boolean includeLast) {
            List<List<EdgeState>> acc = Lists.newArrayListWithExpectedSize(1);
            pathTo(edge, new ArrayList<>(), acc, new HashSet<>());
            List<String> result = Lists.newArrayListWithCapacity(acc.size());
            for (List<EdgeState> path : acc) {
                EdgeState target = Iterators.getLast(path.iterator());
                StringBuilder sb = new StringBuilder();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. testing/distributions-integ-tests/src/integTest/groovy/org/gradle/DistributionIntegritySpec.groovy

            duplicateClasses.isEmpty()
        }
    
        private static def collectJars(TestFile file, Collection<File> acc = []) {
            if (file.name.endsWith('.jar')) {
                acc.add(file)
            }
            if (file.isDirectory()) {
                file.listFiles().each { f -> collectJars(f, acc) }
            }
            acc
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/math/big/float.go

    }
    
    // Mode returns the rounding mode of x.
    func (x *Float) Mode() RoundingMode {
    	return x.mode
    }
    
    // Acc returns the accuracy of x produced by the most recent
    // operation, unless explicitly documented otherwise by that
    // operation.
    func (x *Float) Acc() Accuracy {
    	return x.acc
    }
    
    // Sign returns:
    //
    //	-1 if x <   0
    //	 0 if x is ±0
    //	+1 if x >   0
    func (x *Float) Sign() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  7. platforms/core-runtime/functional/src/test/groovy/org/gradle/internal/collect/PersistentListTest.groovy

                ["a", "b", "c", "d"]
            ]
        }
    
        private static PersistentList<String> listOf(List<String> elements) {
            return elements.reverse().inject(PersistentList.<String>of()) { acc, val -> acc + val }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 09:24:00 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/math/big/floatmarsh.go

    // rounding mode, accuracy) are marshaled.
    func (x *Float) GobEncode() ([]byte, error) {
    	if x == nil {
    		return nil, nil
    	}
    
    	// determine max. space (bytes) required for encoding
    	sz := 1 + 1 + 4 // version + mode|acc|form|neg (3+2+2+1bit) + prec
    	n := 0          // number of mantissa words
    	if x.form == finite {
    		// add space for mantissa and exponent
    		n = int((x.prec + (_W - 1)) / _W) // required mantissa length in words for given precision
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 21:31:58 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/project/DeclarativeDslProjectBuildFileIntegrationSpec.groovy

                                System.out.println("primaryAccess = { " +
                                        acc.getName().get() + ", " + acc.getRead().get() + ", " + acc.getWrite().get() + "}"
                                );
                                secondaryAccess.get().forEach(it -> {
                                    System.out.println("secondaryAccess { " +
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt

                equalTo(1024)
            )
        }
    
        sealed class Peano {
    
            companion object {
    
                fun fromInt(n: Int): Peano = (0 until n).fold(Z as Peano) { acc, _ -> S(acc) }
            }
    
            fun toInt(): Int = sequence().count() - 1
    
            object Z : Peano() {
                override fun toString() = "Z"
            }
    
            data class S(val n: Peano) : Peano() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top