Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 4,587 for i$ (0.05 sec)

  1. src/cmd/cgo/internal/testplugin/testdata/iface_i/i.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package iface_i
    
    type I interface {
    	M()
    }
    
    type T struct {
    }
    
    func (t *T) M() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 263 bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testshared/testdata/iface_i/i.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package iface_i
    
    type I interface {
    	M()
    }
    
    type T struct {
    }
    
    func (t *T) M() {
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 263 bytes
    - Viewed (0)
  3. src/runtime/iface_test.go

    func BenchmarkEqEfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = e == ts
    	}
    }
    
    func BenchmarkEqIfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = i1 == ts
    	}
    }
    
    func BenchmarkNeEfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = e != ts
    	}
    }
    
    func BenchmarkNeIfaceConcrete(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_ = i1 != ts
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 7.5K bytes
    - Viewed (0)
  4. src/sort/sort_slices_benchmark_test.go

    	r := rand.New(rand.NewPCG(42, 0))
    	ints := make([]int, n)
    	for i := 0; i < n; i++ {
    		ints[i] = r.IntN(n)
    	}
    	return ints
    }
    
    func makeSortedInts(n int) []int {
    	ints := make([]int, n)
    	for i := 0; i < n; i++ {
    		ints[i] = i
    	}
    	return ints
    }
    
    func makeReversedInts(n int) []int {
    	ints := make([]int, n)
    	for i := 0; i < n; i++ {
    		ints[i] = n - i
    	}
    	return ints
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 22:59:40 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/container/heap/heap_test.go

    	for i := 1; h.Len() > 0; i++ {
    		x := Pop(h).(int)
    		h.verify(t, 0)
    		if x != i {
    			t.Errorf("%d.th pop got %d; want %d", i, x, i)
    		}
    	}
    }
    
    func Test(t *testing.T) {
    	h := new(myHeap)
    	h.verify(t, 0)
    
    	for i := 20; i > 10; i-- {
    		h.Push(i)
    	}
    	Init(h)
    	h.verify(t, 0)
    
    	for i := 10; i > 0; i-- {
    		Push(h, i)
    		h.verify(t, 0)
    	}
    
    	for i := 1; h.Len() > 0; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  6. src/reflect/iter_test.go

    		{"func", ValueOf(func(f func(int, int) bool) {
    			for i := range 4 {
    				f(i, i+1)
    			}
    		}), func(t *testing.T, s iter.Seq2[Value, Value]) {
    			i := int64(0)
    			for v1, v2 := range s {
    				if v1.Int() != i {
    					t.Fatalf("got %d, want %d", v1.Int(), i)
    				}
    				i++
    				if v2.Int() != i {
    					t.Fatalf("got %d, want %d", v2.Int(), i)
    				}
    			}
    			if i != 4 {
    				t.Fatalf("should loop four times")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 14:27:54 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. test/checkbce.go

    	a[5] = 1
    	a[5] = 1
    }
    
    func f1(a [256]int, i int) {
    	var j int
    	useInt(a[i]) // ERROR "Found IsInBounds$"
    	j = i % 256
    	useInt(a[j]) // ERROR "Found IsInBounds$"
    	j = i & 255
    	useInt(a[j])
    	j = i & 17
    	useInt(a[j])
    
    	if 4 <= i && i < len(a) {
    		useInt(a[i])
    		useInt(a[i-1])
    		useInt(a[i-4])
    	}
    }
    
    func f2(a [256]int, i uint) {
    	useInt(a[i]) // ERROR "Found IsInBounds$"
    	j := i % 256
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/test/math_test.go

    	for i := 1; i <= b.N; i++ {
    		r = -(int64(i) - r) % int64(i)
    	}
    	Output = int(r)
    }
    
    func BenchmarkMod64SmallNegBoth(b *testing.B) {
    	r := int64(1)
    	for i := 1; i <= b.N; i++ {
    		r = -(int64(i) + r) % -int64(i)
    	}
    	Output = int(r)
    }
    
    func BenchmarkMod64Unsigned(b *testing.B) {
    	r := uint64(1)
    	for i := 1; i <= b.N; i++ {
    		r = (uint64(0x7fffffffffffffff) - uint64(i) - (r & 1)) % uint64(i)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/math/huge_test.go

    func TestHugeCos(t *testing.T) {
    	for i := 0; i < len(trigHuge); i++ {
    		f1 := cosHuge[i]
    		f2 := Cos(trigHuge[i])
    		if !close(f1, f2) {
    			t.Errorf("Cos(%g) = %g, want %g", trigHuge[i], f2, f1)
    		}
    		f3 := Cos(-trigHuge[i])
    		if !close(f1, f3) {
    			t.Errorf("Cos(%g) = %g, want %g", -trigHuge[i], f3, f1)
    		}
    	}
    }
    
    func TestHugeSin(t *testing.T) {
    	for i := 0; i < len(trigHuge); i++ {
    		f1 := sinHuge[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 16:23:41 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/rsc.io/markdown/table.go

    	col := 0
    	delim := tableTrimOuter(delim1)
    	i := 0
    	for ; ; col++ {
    		for i < len(delim) && isTableSpace(delim[i]) {
    			i++
    		}
    		if i >= len(delim) {
    			break
    		}
    		if i < len(delim) && delim[i] == ':' {
    			i++
    		}
    		if i >= len(delim) || delim[i] != '-' {
    			return false
    		}
    		i++
    		for i < len(delim) && delim[i] == '-' {
    			i++
    		}
    		if i < len(delim) && delim[i] == ':' {
    			i++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 5.4K bytes
    - Viewed (0)
Back to top