Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 216 for elem (0.73 sec)

  1. src/cmd/compile/internal/walk/temp.go

    // allocated temporary variable of type [len]elem. This variable is
    // initialized, and elem must not contain pointers.
    func stackBufAddr(len int64, elem *types.Type) *ir.AddrExpr {
    	if elem.HasPointers() {
    		base.FatalfAt(base.Pos, "%v has pointers", elem)
    	}
    	tmp := typecheck.TempAt(base.Pos, ir.CurFunc, types.NewArray(elem, len))
    	return typecheck.Expr(typecheck.NodAddr(tmp)).(*ir.AddrExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. src/embed/embed.go

    	//	q/s/u
    	//	q/v
    	//	w
    	//
    	// is actually sorted as:
    	//
    	//	p       # dir=.    elem=p
    	//	q/      # dir=.    elem=q
    	//	w/      # dir=.    elem=w
    	//	q/r     # dir=q    elem=r
    	//	q/s/    # dir=q    elem=s
    	//	q/v     # dir=q    elem=v
    	//	q/s/t   # dir=q/s  elem=t
    	//	q/s/u   # dir=q/s  elem=u
    	//
    	// This order brings directory contents together in contiguous sections
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/select.go

    			init = append(init, typecheck.Stmt(r))
    		}
    
    		c = typecheck.ConvNop(c, types.Types[types.TUNSAFEPTR])
    		setField("c", c)
    		if !ir.IsBlank(elem) {
    			elem = typecheck.ConvNop(elem, types.Types[types.TUNSAFEPTR])
    			setField("elem", elem)
    		}
    
    		// TODO(mdempsky): There should be a cleaner way to
    		// handle this.
    		if base.Flag.Race {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modload/search.go

    				return nil
    			}
    
    			want := true
    			elem := ""
    
    			// Don't use GOROOT/src but do walk down into it.
    			if pkgDir == root {
    				if importPathRoot == "" {
    					return nil
    				}
    			} else {
    				// Avoid .foo, _foo, and testdata subdirectory trees.
    				_, elem = filepath.Split(pkgDir)
    				if strings.HasPrefix(elem, ".") || strings.HasPrefix(elem, "_") || elem == "testdata" {
    					want = false
    				}
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  5. src/encoding/gob/decode.go

    	elemIsPtr := mtyp.Elem().Kind() == reflect.Pointer
    	keyInstr := &decInstr{keyOp, 0, nil, ovfl}
    	elemInstr := &decInstr{elemOp, 0, nil, ovfl}
    	keyP := reflect.New(mtyp.Key())
    	elemP := reflect.New(mtyp.Elem())
    	for i := 0; i < n; i++ {
    		key := decodeIntoValue(state, keyOp, keyIsPtr, keyP.Elem(), keyInstr)
    		elem := decodeIntoValue(state, elemOp, elemIsPtr, elemP.Elem(), elemInstr)
    		value.SetMapIndex(key, elem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  6. src/encoding/gob/type.go

    	return s
    }
    
    func (s *sliceType) init(elem gobType) {
    	// Set our type id before evaluating the element's, in case it's our own.
    	setTypeId(s)
    	// See the comments about ids in newTypeObject. Only slices and
    	// structs have mutual recursion.
    	if elem.id() == 0 {
    		setTypeId(elem)
    	}
    	s.Elem = elem.id()
    }
    
    func (s *sliceType) safeString(seen map[typeId]bool) string {
    	if seen[s.Id] {
    		return s.Name
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/iexport.go

    //
    //     type PointerType struct {
    //         Tag  itag // pointerType
    //         Elem typeOff
    //     }
    //
    //     type SliceType struct {
    //         Tag  itag // sliceType
    //         Elem typeOff
    //     }
    //
    //     type ArrayType struct {
    //         Tag  itag // arrayType
    //         Len  uint64
    //         Elem typeOff
    //     }
    //
    //     type ChanType struct {
    //         Tag  itag   // chanType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:40:02 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/fmt.go

    			tconv2(b, t.Elem(), 0, mode, visited)
    		case Csend:
    			b.WriteString("chan<- ")
    			tconv2(b, t.Elem(), 0, mode, visited)
    		default:
    			b.WriteString("chan ")
    			if t.Elem() != nil && t.Elem().IsChan() && t.Elem().Sym() == nil && t.Elem().ChanDir() == Crecv {
    				b.WriteByte('(')
    				tconv2(b, t.Elem(), 0, mode, visited)
    				b.WriteByte(')')
    			} else {
    				tconv2(b, t.Elem(), 0, mode, visited)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/compare.go

    				and(notCond)
    			}
    		}
    	} else {
    		step := int64(1)
    		remains := t.NumElem() * t.Elem().Size()
    		combine64bit := unalignedLoad && types.RegSize == 8 && t.Elem().Size() <= 4 && t.Elem().IsInteger()
    		combine32bit := unalignedLoad && t.Elem().Size() <= 2 && t.Elem().IsInteger()
    		combine16bit := unalignedLoad && t.Elem().Size() == 1 && t.Elem().IsInteger()
    		for i := int64(0); remains > 0; {
    			var convType *types.Type
    			switch {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    						addType(targs.At(i))
    					}
    				}
    			}
    		case *types.Pointer:
    			addType(T.Elem())
    		case *types.Slice:
    			addType(T.Elem())
    		case *types.Array:
    			addType(T.Elem())
    		case *types.Chan:
    			addType(T.Elem())
    		case *types.Map:
    			addType(T.Key())
    			addType(T.Elem())
    		case *types.Signature:
    			addType(T.Params())
    			addType(T.Results())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top