Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for i0 (0.03 sec)

  1. test/rune.go

    	r4 = 'a'/2
    	r5 = 'a'<<1
    	r6 = 'b'<<2
    	r7 int32
    
    	r = []rune{r0, r1, r2, r3, r4, r5, r6, r7}
    )
    
    var (
    	f0 = 1.2
    	f1 = 1.2/'a'
    
    	f = []float64{f0, f1}
    )
    
    var (
    	i0 = 1
    	i1 = 1<<'\x01'
    	
    	i = []int{i0, i1}
    )
    
    const (
    	maxRune = '\U0010FFFF'
    )
    
    var (
    	b0 = maxRune < r0
    	
    	b = []bool{b0}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 603 bytes
    - Viewed (0)
  2. test/fixedbugs/bug027.go

    	v.elem[v.nelem] = e
    	v.nelem++
    }
    
    func main() {
    	type I struct{ val int }
    	i0 := new(I)
    	i0.val = 0
    	i1 := new(I)
    	i1.val = 11
    	i2 := new(I)
    	i2.val = 222
    	i3 := new(I)
    	i3.val = 3333
    	i4 := new(I)
    	i4.val = 44444
    	v := New()
    	r := "hi\n"
    	v.Insert(i4)
    	v.Insert(i3)
    	v.Insert(i2)
    	v.Insert(i1)
    	v.Insert(i0)
    	for i := 0; i < v.nelem; i++ {
    		var x *I
    		x = v.At(i).(*I)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 1.2K bytes
    - Viewed (0)
  3. test/ken/interbasic.go

    // license that can be found in the LICENSE file.
    
    // Test interfaces on basic types.
    
    package main
    
    type myint int
    type mystring string
    type I0 interface{}
    
    func f() {
    	var ia, ib I0
    	var i myint
    	var s mystring
    
    	if ia != ib {
    		panic("1")
    	}
    
    	i = 1
    	ia = i
    	ib = i
    	if ia != ib {
    		panic("2")
    	}
    	if ia == nil {
    		panic("3")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.2K bytes
    - Viewed (0)
  4. src/internal/trace/batchcursor.go

    			// Heap invariant already applies.
    			break
    		}
    		heap[i], heap[m] = heap[m], heap[i]
    		i = m
    	}
    	return i
    }
    
    func min3(b []*batchCursor, i0, i1, i2 int) int {
    	minIdx := i0
    	minT := maxTime
    	if i0 < len(b) {
    		minT = b[i0].ev.time
    	}
    	if i1 < len(b) {
    		if t := b[i1].ev.time; t < minT {
    			minT = t
    			minIdx = i1
    		}
    	}
    	if i2 < len(b) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/typeinst1.go

    }
    
    type E2 interface {
    	~float64
    }
    
    type I0 interface {
    	E0
    }
    
    func f0[T I0]() {}
    var _ = f0[int]
    var _ = f0[bool]
    var _ = f0[string]
    var _ = f0[float64 /* ERROR "does not satisfy I0" */ ]
    
    type I01 interface {
    	E0
    	E1
    }
    
    func f01[T I01]() {}
    var _ = f01[int]
    var _ = f01[bool /* ERROR "does not satisfy I0" */ ]
    var _ = f01[string]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  6. src/time/zoneinfo_windows.go

    	dst.isDST = true
    
    	// Arrange so that d0 is first transition date, d1 second,
    	// i0 is index of zone after first transition, i1 second.
    	d0 := &i.StandardDate
    	d1 := &i.DaylightDate
    	i0 := 0
    	i1 := 1
    	if d0.Month > d1.Month {
    		d0, d1 = d1, d0
    		i0, i1 = i1, i0
    	}
    
    	// 2 tx per year, 100 years on each side of this year
    	l.tx = make([]zoneTrans, 400)
    
    	t := Now().UTC()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 07:20:34 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

    import com.google.caliper.Benchmark;
    
    /**
     * Some microbenchmarks for the {@link com.google.common.base.Objects} class.
     *
     * @author Ben L. Titzer
     */
    public class ObjectsBenchmark {
    
      private static final Integer I0 = -45;
      private static final Integer I1 = -1;
      private static final Integer I2 = 3;
      private static final String S0 = "3";
      private static final String S1 = "Ninety five";
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.2K bytes
    - Viewed (0)
  8. test/fixedbugs/bug285.go

    	mc := make(map[C]int)
    	mc[nil] = 42
    	mc[c] = 42
    	mc[make(C)] = 42
    
    	type I1 interface{}
    	type I2 interface {
    		f() int
    	}
    	var i0 interface{} = z
    	var i1 I1 = p
    	m0 := make(map[interface{}]int)
    	m1 := make(map[I1]int)
    	m2 := make(map[I2]int)
    	m0[i0] = 42
    	m0[i1] = 42
    	m0[z] = 42 // this should work: z is assignment-compatible with interface{}
    	m0[new(struct {
    		x int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  9. test/fixedbugs/issue15548.dir/a.go

    // Copyright 2016 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    type I0 interface {
    	I1
    }
    
    type T struct {
    	I1
    }
    
    type I1 interface {
    	M(*T) // removing * makes crash go away
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 20:31:30 UTC 2016
    - 284 bytes
    - Viewed (0)
  10. src/container/heap/heap.go

    		j = i
    	}
    }
    
    func down(h Interface, i0, n int) bool {
    	i := i0
    	for {
    		j1 := 2*i + 1
    		if j1 >= n || j1 < 0 { // j1 < 0 after int overflow
    			break
    		}
    		j := j1 // left child
    		if j2 := j1 + 1; j2 < n && h.Less(j2, j1) {
    			j = j2 // = 2*i + 2  // right child
    		}
    		if !h.Less(j, i) {
    			break
    		}
    		h.Swap(i, j)
    		i = j
    	}
    	return i > i0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:10 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top