Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 369 for elim (0.04 sec)

  1. src/cmd/compile/internal/typecheck/_builtin/runtime.go

    func makechan64(chanType *byte, size int64) (hchan chan any)
    func makechan(chanType *byte, size int) (hchan chan any)
    func chanrecv1(hchan <-chan any, elem *any)
    func chanrecv2(hchan <-chan any, elem *any) bool
    func chansend1(hchan chan<- any, elem *any)
    func closechan(hchan chan<- any)
    func chanlen(hchan any) int
    func chancap(hchan any) int
    
    var writeBarrier struct {
    	enabled bool
    	pad     [3]byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/meta/help.go

    	}
    
    	items := v.FieldByName("Items")
    	if !items.IsValid() {
    		return nil, errExpectFieldItems
    	}
    	switch items.Kind() {
    	case reflect.Interface, reflect.Pointer:
    		target := reflect.TypeOf(items.Interface()).Elem()
    		if target.Kind() != reflect.Slice {
    			return nil, errExpectSliceItems
    		}
    		return items.Interface(), nil
    	case reflect.Slice:
    		return items.Addr().Interface(), nil
    	default:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 16:25:43 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  3. src/runtime/type.go

    		return typesEqual(mt.Key, mv.Key, seen) && typesEqual(mt.Elem, mv.Elem, seen)
    	case abi.Pointer:
    		pt := (*ptrtype)(unsafe.Pointer(t))
    		pv := (*ptrtype)(unsafe.Pointer(v))
    		return typesEqual(pt.Elem, pv.Elem, seen)
    	case abi.Slice:
    		st := (*slicetype)(unsafe.Pointer(t))
    		sv := (*slicetype)(unsafe.Pointer(v))
    		return typesEqual(st.Elem, sv.Elem, seen)
    	case abi.Struct:
    		st := (*structtype)(unsafe.Pointer(t))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/decompose.go

    	if t.NumElem() != 1 {
    		v.Fatalf("SSAable array must have no more than 1 element")
    	}
    	elem := v.Block.NewValue0(v.Pos, OpPhi, t.Elem())
    	for _, a := range v.Args {
    		elem.AddArg(a.Block.NewValue1I(v.Pos, OpArraySelect, t.Elem(), 0, a))
    	}
    	v.reset(OpArrayMake1)
    	v.AddArg(elem)
    
    	// Recursively decompose elem phi.
    	decomposeUserPhi(elem)
    }
    
    // MaxStruct is the maximum number of fields a struct
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  5. src/text/template/exec.go

    	mark := s.mark()
    	oneIteration := func(index, elem reflect.Value) {
    		if len(r.Pipe.Decl) > 0 {
    			if r.Pipe.IsAssign {
    				// With two variables, index comes first.
    				// With one, we use the element.
    				if len(r.Pipe.Decl) > 1 {
    					s.setVar(r.Pipe.Decl[0].Ident[0], index)
    				} else {
    					s.setVar(r.Pipe.Decl[0].Ident[0], elem)
    				}
    			} else {
    				// Set top var (lexically the second if there
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  6. test/escape_reflect.go

    	v := reflect.ValueOf(x).Elem()
    	return v.Addr()
    }
    
    // functions returning pointer as uintptr have to escape.
    func uintptr1(x *int) uintptr { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x)
    	return v.Pointer()
    }
    
    func unsafeaddr(x *int) uintptr { // ERROR "leaking param: x$"
    	v := reflect.ValueOf(x).Elem()
    	return v.UnsafeAddr()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:50:24 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. src/bufio/bufio.go

    // [Reader.ReadBytes] or ReadString instead.
    // ReadSlice returns err != nil if and only if line does not end in delim.
    func (b *Reader) ReadSlice(delim byte) (line []byte, err error) {
    	s := 0 // search start index
    	for {
    		// Search buffer.
    		if i := bytes.IndexByte(b.buf[b.r+s:b.w], delim); i >= 0 {
    			i += s
    			line = b.buf[b.r : b.r+i+1]
    			b.r += i + 1
    			break
    		}
    
    		// Pending error?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 14:39:08 UTC 2023
    - 21.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/github.com/google/pprof/internal/driver/html/stacks.js

      // setHrefParam updates the specified parameter in the  href of an <a>
      // element to make it operate on the specified src.
      function setHrefParam(id, param, src) {
        const elem = document.getElementById(id);
        if (!elem) return;
    
        let url = new URL(elem.href);
        url.hash = '';
    
        // Copy params from this page's URL.
        const params = url.searchParams;
        for (const p of new URLSearchParams(window.location.search)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		default:
    			return ast.NewIdent(t.Name())
    		}
    	case *types.Pointer:
    		x := TypeExpr(f, pkg, t.Elem())
    		if x == nil {
    			return nil
    		}
    		return &ast.UnaryExpr{
    			Op: token.MUL,
    			X:  x,
    		}
    	case *types.Array:
    		elt := TypeExpr(f, pkg, t.Elem())
    		if elt == nil {
    			return nil
    		}
    		return &ast.ArrayType{
    			Len: &ast.BasicLit{
    				Kind:  token.INT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. src/net/url/url.go

    func (u *URL) JoinPath(elem ...string) *URL {
    	elem = append([]string{u.EscapedPath()}, elem...)
    	var p string
    	if !strings.HasPrefix(elem[0], "/") {
    		// Return a relative path if u is relative,
    		// but ensure that it contains no ../ elements.
    		elem[0] = "/" + elem[0]
    		p = path.Join(elem...)[1:]
    	} else {
    		p = path.Join(elem...)
    	}
    	// path.Join will remove any trailing slashes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:53 UTC 2024
    - 36.1K bytes
    - Viewed (0)
Back to top