Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 257 for newRat (0.12 sec)

  1. src/crypto/internal/bigmod/nat_test.go

    	N, _ := NewModulusFromBig(n)
    	A := NewNat().setBig(a).ExpandFor(N)
    	B := NewNat().setBig(b).ExpandFor(N)
    
    	if A.Mul(B, N).IsZero() != 1 {
    		t.Error("a * b mod (a * b) != 0")
    	}
    
    	i := new(big.Int).ModInverse(a, b)
    	N, _ = NewModulusFromBig(b)
    	A = NewNat().setBig(a).ExpandFor(N)
    	I := NewNat().setBig(i).ExpandFor(N)
    	one := NewNat().setBig(big.NewInt(1)).ExpandFor(N)
    
    	if A.Mul(I, N).Equal(one) != 1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. misc/cgo/gmp/pi.go

    //go:build ignore
    
    package main
    
    import (
    	big "."
    	"fmt"
    	"runtime"
    )
    
    var (
    	tmp1  = big.NewInt(0)
    	tmp2  = big.NewInt(0)
    	numer = big.NewInt(1)
    	accum = big.NewInt(0)
    	denom = big.NewInt(1)
    	ten   = big.NewInt(10)
    )
    
    func extractDigit() int64 {
    	if big.CmpInt(numer, accum) > 0 {
    		return -1
    	}
    	tmp1.Lsh(numer, 1).Add(tmp1, numer).Add(tmp1, accum)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 10 22:32:35 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top