Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 217 for newRat (0.17 sec)

  1. src/runtime/slice.go

    		// gives a smooth-ish transition between the two.
    		newcap += (newcap + 3*threshold) >> 2
    
    		// We need to check `newcap >= newLen` and whether `newcap` overflowed.
    		// newLen is guaranteed to be larger than zero, hence
    		// when newcap overflows then `uint(newcap) > uint(newLen)`.
    		// This allows to check for both with the same comparison.
    		if uint(newcap) >= uint(newLen) {
    			break
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. test/fixedbugs/issue9604b.go

    		a = append(a, r.Lsh(r, t.bits-1).Sub(r, big.NewInt(1)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Sub(r, big.NewInt(2)))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Neg(r))
    		r = big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits-1).Neg(r).Add(r, big.NewInt(1)))
    	} else {
    		r := big.NewInt(1)
    		a = append(a, r.Lsh(r, t.bits).Sub(r, big.NewInt(1)))
    		r = big.NewInt(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/util/util.go

    	}
    
    	writeIfNotEqual := func(fileName string, newData []byte) error {
    		if newData == nil {
    			return nil
    		}
    		oldData, _ := os.ReadFile(path.Join(dir, fileName))
    		if !bytes.Equal(oldData, newData) {
    			if err := file.AtomicWrite(path.Join(dir, fileName), newData, certFileMode); err != nil {
    				return fmt.Errorf("failed to write data to file %v: %v", fileName, err)
    			}
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 17 10:33:38 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/fixture/TestNGCoverage.groovy

        private static final Set<String> VERSIONS = [
            '5.12.1', // Newest version without TestNG#setConfigFailurePolicy method (Added in 5.13)
            FIXED_ILLEGAL_ACCESS,
            BEFORE_BROKEN_PRESERVE_ORDER,
            FIXED_BROKEN_PRESERVE_ORDER,
            BROKEN_ICLASS_LISTENER,
            FIXED_ICLASS_LISTENER,
            NEWEST
        ]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. test/fixedbugs/issue62360.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"math/big"
    )
    
    //go:noinline
    func f(x uint32) *big.Int {
    	return big.NewInt(int64(x))
    }
    func main() {
    	b := f(0xffffffff)
    	c := big.NewInt(0xffffffff)
    	if b.Cmp(c) != 0 {
    		panic(fmt.Sprintf("b:%x c:%x", b, c))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 15:15:28 UTC 2023
    - 414 bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testng/TestNGUpToDateCheckIntegrationTest.groovy

            buildScript """
                apply plugin: "java"
                ${mavenCentralRepository()}
                testing {
                    suites {
                        test {
                            useTestNG('${TestNGCoverage.NEWEST}')
                            targets {
                                all {
                                    testTask.configure {
                                        options {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat May 18 12:30:10 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/conflict/NewestConflictResolver.java

    /**
     * Resolves conflicting artifacts by always selecting the newest declaration. Newest is defined as the
     * declaration whose version is greater according to <code>ArtifactVersion.compareTo</code>.
     *
     * @see ArtifactVersion#compareTo
     * @since 3.0
     */
    @Named("newest")
    @Singleton
    @Deprecated
    public class NewestConflictResolver implements ConflictResolver {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 11:28:54 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/select.go

    	fn := typecheck.LookupRuntime("selectgo")
    	var fnInit ir.Nodes
    	r.Rhs = []ir.Node{mkcall1(fn, fn.Type().ResultsTuple(), &fnInit, bytePtrToIndex(selv, 0), bytePtrToIndex(order, 0), pc0, ir.NewInt(base.Pos, int64(nsends)), ir.NewInt(base.Pos, int64(nrecvs)), ir.NewBool(base.Pos, dflt == nil))}
    	init = append(init, fnInit...)
    	init = append(init, typecheck.Stmt(r))
    
    	// selv, order, and pcs (if race) are no longer alive after selectgo.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors_test.go

    	testCases := struct {
    		ErrList         []ErrorList
    		NumExpectedErrs []int
    	}{
    		[]ErrorList{
    			nil,
    			{},
    			{Invalid(NewPath("f"), "v", "d")},
    			{Invalid(NewPath("f"), "v", "d"), Invalid(NewPath("f"), "v", "d")},
    			{Invalid(NewPath("f"), "v", "d"), InternalError(NewPath(""), fmt.Errorf("e"))},
    		},
    		[]int{
    			0,
    			0,
    			1,
    			1,
    			2,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Oct 28 07:31:28 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/coverage/cover.go

    	lenx := ir.NewInt(base.Pos, int64(mdlen)) // untyped
    
    	// Generate a call to runtime.addCovMeta, e.g.
    	//
    	//   pkgIdVar = runtime.addCovMeta(&sym, len, hash, pkgpath, pkid, cmode, cgran)
    	//
    	fn := typecheck.LookupRuntime("addCovMeta")
    	pkid := coverage.HardCodedPkgID(base.Ctxt.Pkgpath)
    	pkIdNode := ir.NewInt(base.Pos, int64(pkid))
    	cmodeNode := ir.NewInt(base.Pos, int64(cnames.CounterMode))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 21:55:46 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top