Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 670 for big4 (0.04 sec)

  1. istioctl/pkg/util/formatting/formatter_test.go

    		"Error [B1] (SoapBubble) Explosion accident: the bubble is too big\n" +
    			"Warning [C1] (GrandCastle) Collapse danger: the castle is too old",
    	))
    }
    
    func TestFormatter_PrintLogWithColor(t *testing.T) {
    	g := NewWithT(t)
    
    	firstMsg := diag.NewMessage(
    		diag.NewMessageType(diag.Error, "B1", "Explosion accident: %v"),
    		diag.MockResource("SoapBubble"),
    		"the bubble is too big",
    	)
    	secondMsg := diag.NewMessage(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/test/testdata/gen/cmpConstGen.go

    	default:
    		panic("unexpected type")
    	}
    	return cmp(min, "<=", val) && cmp(val, "<=", max)
    }
    
    func getValues(typ string) []*big.Int {
    	Uint := func(v uint64) *big.Int { return big.NewInt(0).SetUint64(v) }
    	Int := func(v int64) *big.Int { return big.NewInt(0).SetInt64(v) }
    	values := []*big.Int{
    		// limits
    		Uint(maxU64),
    		Uint(maxU64 - 1),
    		Uint(maxI64 + 1),
    		Uint(maxI64),
    		Uint(maxI64 - 1),
    		Uint(maxU32 + 1),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  3. src/crypto/rsa/rsa.go

    	}
    
    	// Fill in the backwards-compatibility *big.Int values.
    	if priv.Precomputed.Dp != nil {
    		return
    	}
    
    	priv.Precomputed.Dp = new(big.Int).Sub(priv.Primes[0], bigOne)
    	priv.Precomputed.Dp.Mod(priv.D, priv.Precomputed.Dp)
    
    	priv.Precomputed.Dq = new(big.Int).Sub(priv.Primes[1], bigOne)
    	priv.Precomputed.Dq.Mod(priv.D, priv.Precomputed.Dq)
    
    	priv.Precomputed.Qinv = new(big.Int).ModInverse(priv.Primes[1], priv.Primes[0])
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue9400_linux.go

    		// Indicate that signalling is done
    		atomic.StoreInt32(&issue9400.Baton, 0)
    	}()
    
    	// Grow the stack and put down a test pattern
    	const pattern = 0x123456789abcdef
    	var big [1024]uint64 // len must match assembly
    	for i := range big {
    		big[i] = pattern
    	}
    
    	// Disable GC for the duration of the test.
    	// This avoids a potential GC deadlock when spinning in uninterruptible ASM below #49695.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. src/crypto/rand/util_test.go

    		}
    	}()
    	rand.Int(rand.Reader, b)
    }
    
    // Test that passing a new big.Int as max causes Int to panic
    func TestIntEmptyMaxPanics(t *testing.T) {
    	b := new(big.Int)
    	testIntPanics(t, b)
    }
    
    // Test that passing a negative value as max causes Int to panic
    func TestIntNegativeMaxPanics(t *testing.T) {
    	b := new(big.Int).SetInt64(int64(-1))
    	testIntPanics(t, b)
    }
    
    func BenchmarkPrime(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 01:35:39 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  6. src/crypto/x509/platform_test.go

    		{
    			name: "valid",
    			cert: &Certificate{
    				SerialNumber: big.NewInt(1),
    				DNSNames:     []string{"valid.testing.golang.invalid"},
    				NotBefore:    now.Add(-time.Hour),
    				NotAfter:     now.Add(time.Hour),
    				ExtKeyUsage:  []ExtKeyUsage{ExtKeyUsageServerAuth},
    			},
    		},
    		{
    			name: "valid (with name)",
    			cert: &Certificate{
    				SerialNumber: big.NewInt(1),
    				DNSNames:     []string{"valid.testing.golang.invalid"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 17:18:29 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. test/fixedbugs/issue15277.go

    package main
    
    import "runtime"
    
    type big [10 << 20]byte
    
    func f(x *big, start int64) {
    	if delta := inuse() - start; delta < 9<<20 {
    		println("after alloc: expected delta at least 9MB, got: ", delta)
    	}
    	runtime.KeepAlive(x)
    	x = nil
    	if delta := inuse() - start; delta > 1<<20 {
    		println("after drop: expected delta below 1MB, got: ", delta)
    	}
    	x = new(big)
    	if delta := inuse() - start; delta < 9<<20 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 851 bytes
    - Viewed (0)
  8. src/math/big/link_test.go

    	}
    	const want = "runtime.main"
    	if !bytes.Contains(nm, []byte(want)) {
    		// Test the test.
    		t.Errorf("expected symbol %q not found", want)
    	}
    	bad := []string{
    		"math/big.(*Float)",
    		"math/big.(*Rat)",
    		"math/big.(*Int)",
    	}
    	for _, sym := range bad {
    		if bytes.Contains(nm, []byte(sym)) {
    			t.Errorf("unexpected symbol %q found", sym)
    		}
    	}
    	if t.Failed() {
    		t.Logf("Got: %s", nm)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 24 15:51:26 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  9. src/crypto/internal/bigmod/nat_test.go

    	for i := 0; i < b.N; i++ {
    		x.Mul(y, m)
    	}
    }
    
    func BenchmarkExpBig(b *testing.B) {
    	out := new(big.Int)
    	exponentBytes := makeBenchmarkExponent()
    	x := new(big.Int).SetBytes(exponentBytes)
    	e := new(big.Int).SetBytes(exponentBytes)
    	n := new(big.Int).SetBytes(exponentBytes)
    	one := new(big.Int).SetUint64(1)
    	n.Add(n, one)
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		out.Exp(x, e, n)
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 12 00:56:20 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. src/runtime/race/testdata/map_test.go

    	m = make(map[int]int)
    	<-ch
    }
    
    type Big struct {
    	x [17]int32
    }
    
    func TestRaceMapLookupPartKey(t *testing.T) {
    	k := &Big{}
    	m := make(map[Big]bool)
    	ch := make(chan bool, 1)
    	go func() {
    		k.x[8] = 1
    		ch <- true
    	}()
    	_ = m[*k]
    	<-ch
    }
    
    func TestRaceMapLookupPartKey2(t *testing.T) {
    	k := &Big{}
    	m := make(map[Big]bool)
    	ch := make(chan bool, 1)
    	go func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 03 22:09:38 UTC 2017
    - 5.1K bytes
    - Viewed (0)
Back to top