Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 312 for newRat (0.13 sec)

  1. 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)
  2. pkg/registry/core/service/allocator/utils_test.go

    	// bigN is an integer that occupies more than one big.Word.
    	bigN, ok := big.NewInt(0).SetString("10000000000000000000000000000000000000000000000000000000000000000", 16)
    	if !ok {
    		t.Fatal("Failed to set bigN")
    	}
    	tests := []struct {
    		n        *big.Int
    		expected int
    	}{
    		{n: big.NewInt(int64(0)), expected: 0},
    		{n: big.NewInt(int64(0xffffffffff)), expected: 40},
    		{n: bigN, expected: 1},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 01 15:08:36 UTC 2021
    - 1.5K 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. staging/src/k8s.io/apimachinery/pkg/runtime/extension_test.go

    			t.Errorf("1st unmarshal error: %v", err)
    		}
    		newData, err := json.Marshal(new1)
    		if err != nil {
    			t.Errorf("2st marshal error: %v", err)
    		}
    		if err = json.Unmarshal(newData, &new2); err != nil {
    			t.Errorf("2nd unmarshal error: %v", err)
    		}
    		if !bytes.Equal(data, newData) {
    			t.Errorf("%s: re-marshaled data differs from original: %v %v", k, data, newData)
    		}
    		if !reflect.DeepEqual(tc.orig, new1) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 08 22:36:37 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue8036.go

    	Z *int
    }
    
    type TI [3]uintptr
    
    //go:noinline
    func G() (t TI) {
    	t[0] = 1
    	t[1] = 2
    	t[2] = 3
    	return
    }
    
    //go:noinline
    func F() (t T) {
    	t.X = newint()
    	t.Y = t.X
    	t.Z = t.Y
    	return
    }
    
    func newint() *int {
    	runtime.GC()
    	return nil
    }
    
    func main() {
    	G() // leave non-pointers where F's return values go
    	F()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 633 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. test/typeparam/issue48225.go

    	val int
    }
    
    func (foo Foo[T]) Get() *T {
    	if foo.val != 1 {
    		panic("bad val field in Foo receiver")
    	}
    	return new(T)
    }
    
    var (
    	newInt    = Foo[int]{val: 1}.Get
    	newString = Foo[string]{val: 1}.Get
    )
    
    func main() {
    	i := newInt()
    	s := newString()
    
    	if t := reflect.TypeOf(i).String(); t != "*int" {
    		panic(t)
    	}
    	if t := reflect.TypeOf(s).String(); t != "*string" {
    		panic(t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 610 bytes
    - Viewed (0)
  10. 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)
Back to top