Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of about 10,000 for i$ (0.04 sec)

  1. test/fixedbugs/issue21655.go

    package main
    
    func f1(a []int64, i int64) int64 {
    	return a[i+1<<30]
    }
    func f2(a []int32, i int64) int32 {
    	return a[i+1<<30]
    }
    func f3(a []int16, i int64) int16 {
    	return a[i+1<<30]
    }
    func f4(a []int8, i int64) int8 {
    	return a[i+1<<31]
    }
    func f5(a []float64, i int64) float64 {
    	return a[i+1<<30]
    }
    func f6(a []float32, i int64) float32 {
    	return a[i+1<<30]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:53:18 UTC 2017
    - 1.5K bytes
    - Viewed (0)
  2. src/reflect/swapper.go

    			return func(i, j int) { ps[i], ps[j] = ps[j], ps[i] }
    		}
    		if typ.Kind() == abi.String {
    			ss := *(*[]string)(v.ptr)
    			return func(i, j int) { ss[i], ss[j] = ss[j], ss[i] }
    		}
    	} else {
    		switch size {
    		case 8:
    			is := *(*[]int64)(v.ptr)
    			return func(i, j int) { is[i], is[j] = is[j], is[i] }
    		case 4:
    			is := *(*[]int32)(v.ptr)
    			return func(i, j int) { is[i], is[j] = is[j], is[i] }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:30 UTC 2024
    - 2K bytes
    - Viewed (0)
  3. src/cmd/asm/internal/arch/arch.go

    	for i := ppc64.REG_R0; i <= ppc64.REG_R31; i++ {
    		register[obj.Rconv(i)] = int16(i)
    	}
    	for i := ppc64.REG_F0; i <= ppc64.REG_F31; i++ {
    		register[obj.Rconv(i)] = int16(i)
    	}
    	for i := ppc64.REG_V0; i <= ppc64.REG_V31; i++ {
    		register[obj.Rconv(i)] = int16(i)
    	}
    	for i := ppc64.REG_VS0; i <= ppc64.REG_VS63; i++ {
    		register[obj.Rconv(i)] = int16(i)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 06:51:28 UTC 2023
    - 21.3K bytes
    - Viewed (0)
  4. src/strings/search.go

    	// pattern.
    	lastPrefix := last
    	for i := last; i >= 0; i-- {
    		if HasPrefix(pattern, pattern[i+1:]) {
    			lastPrefix = i + 1
    		}
    		// lastPrefix is the shift, and (last-i) is len(suffix).
    		f.goodSuffixSkip[i] = lastPrefix + last - i
    	}
    	// Second pass: find repeats of pattern's suffix starting from the front.
    	for i := 0; i < last; i++ {
    		lenSuffix := longestCommonSuffix(pattern, pattern[1:i+1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 18:49:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. src/regexp/syntax/compile.go

    	// alt of failure is other
    	if f1.i == 0 {
    		return f2
    	}
    	if f2.i == 0 {
    		return f1
    	}
    
    	f := c.inst(InstAlt)
    	i := &c.p.Inst[f.i]
    	i.Out = f1.i
    	i.Arg = f2.i
    	f.out = f1.out.append(c.p, f2.out)
    	f.nullable = f1.nullable || f2.nullable
    	return f
    }
    
    func (c *compiler) quest(f1 frag, nongreedy bool) frag {
    	f := c.inst(InstAlt)
    	i := &c.p.Inst[f.i]
    	if nongreedy {
    		i.Arg = f1.i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 13 14:52:20 UTC 2021
    - 6.8K bytes
    - Viewed (0)
  6. pkg/test/util/structpath/instance.go

    	}
    
    	// Success.
    	return &Instance{
    		isJSON:    i.isJSON,
    		structure: value,
    	}
    }
    
    func (i *Instance) appendConstraint(fn func() error) *Instance {
    	i.constraints = append(i.constraints, fn)
    	return i
    }
    
    func (i *Instance) Equals(expected any, path string, args ...any) *Instance {
    	path = fmt.Sprintf(path, args...)
    	return i.appendConstraint(func() error {
    		typeOf := reflect.TypeOf(expected)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  7. test/escape_param.go

    	i := 0 // ERROR "moved to heap: i$"
    	p := Pair{}
    	p.param4(&i)
    	_ = p
    }
    
    func caller4b() {
    	i := 0 // ERROR "moved to heap: i$"
    	p := Pair{}
    	p.param4(&i)
    	sink = p // ERROR "p escapes to heap$"
    }
    
    // in -> heap
    func param5(i *int) { // ERROR "leaking param: i$"
    	sink = i
    }
    
    func caller5() {
    	i := 0 // ERROR "moved to heap: i$"
    	param5(&i)
    }
    
    // *in -> heap
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  8. pkg/test/framework/components/istio/kube.go

    	return i.CustomIngressFor(c, name, eastWestIngressIstioLabel)
    }
    
    func (i *istioImpl) CustomIngressFor(c cluster.Cluster, service types.NamespacedName, labelSelector string) ingress.Instance {
    	i.mu.Lock()
    	defer i.mu.Unlock()
    
    	if i.ingress[c.Name()] == nil {
    		i.ingress[c.Name()] = map[string]ingress.Instance{}
    	}
    	if _, ok := i.ingress[c.Name()][labelSelector]; !ok {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. src/internal/trace/batchcursor.go

    }
    
    func heapSiftUp(heap []*batchCursor, i int) int {
    	for i > 0 && heap[(i-1)/2].ev.time > heap[i].ev.time {
    		heap[(i-1)/2], heap[i] = heap[i], heap[(i-1)/2]
    		i = (i - 1) / 2
    	}
    	return i
    }
    
    func heapSiftDown(heap []*batchCursor, i int) int {
    	for {
    		m := min3(heap, i, 2*i+1, 2*i+2)
    		if m == i {
    			// Heap invariant already applies.
    			break
    		}
    		heap[i], heap[m] = heap[m], heap[i]
    		i = m
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. doc/go_mem.html

    </p>
    
    <ol>
    	<li><i>w</i> happens before <i>r</i>.</li>
    	<li><i>w</i> does not happen before any other write <i>w'</i> (to <i>x</i>) that happens before <i>r</i>.</li>
    </ol>
    
    <p>
    A <i>read-write data race</i> on memory location <i>x</i>
    consists of a read-like memory operation <i>r</i> on <i>x</i>
    and a write-like memory operation <i>w</i> on <i>x</i>,
    at least one of which is non-synchronizing,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 15:54:42 UTC 2024
    - 26.6K bytes
    - Viewed (0)
Back to top