Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 174 for elem1 (0.04 sec)

  1. src/cmd/compile/internal/typecheck/expr.go

    			base.Errorf("invalid operation %v (3-index slice of string)", n)
    			n.SetType(nil)
    			return n
    		}
    		n.SetType(t)
    		n.SetOp(ir.OSLICESTR)
    	} else if t.IsPtr() && t.Elem().IsArray() {
    		tp = t.Elem()
    		n.SetType(types.NewSlice(tp.Elem()))
    		types.CalcSize(n.Type())
    		if hasmax {
    			n.SetOp(ir.OSLICE3ARR)
    		} else {
    			n.SetOp(ir.OSLICEARR)
    		}
    	} else if t.IsSlice() {
    		n.SetType(t)
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. src/go/types/stmt.go

    	// declare a variable inside a function body if the variable is never used."
    	check.usage(sig.scope)
    }
    
    func (check *Checker) usage(scope *Scope) {
    	var unused []*Var
    	for name, elem := range scope.elems {
    		elem = resolve(name, elem)
    		if v, _ := elem.(*Var); v != nil && !v.used {
    			unused = append(unused, v)
    		}
    	}
    	sort.Slice(unused, func(i, j int) bool {
    		return cmpPos(unused[i].pos, unused[j].pos) < 0
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/TopKSelector.java

          // uncheckedCastNullableTToT is safe because bufferSize > 0.
          if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) > 0) {
            threshold = elem;
          }
          // uncheckedCastNullableTToT is safe because bufferSize > 0.
        } else if (comparator.compare(elem, uncheckedCastNullableTToT(threshold)) < 0) {
          // Otherwise, we can ignore elem; we've seen k better elements.
          buffer[bufferSize++] = elem;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. src/runtime/map_fast64.go

    					memclrHasPointers(k, 8)
    				}
    			}
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*8+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/text/internal/language/lookup.go

    		return string(buf[:])
    	}
    	l := lang.Elem(int(b))
    	if l[3] == 0 {
    		return l[:3]
    	}
    	return l[:2]
    }
    
    // ISO3 returns the ISO 639-3 language code.
    func (b Language) ISO3() string {
    	if b == 0 || b >= langNoIndexOffset {
    		return b.String()
    	}
    	l := lang.Elem(int(b))
    	if l[3] == 0 {
    		return l[:3]
    	} else if l[2] == 0 {
    		return altLangISO3.Elem(int(l[3]))[:3]
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/runtime/map_fast32.go

    				*(*unsafe.Pointer)(k) = nil
    			}
    			e := add(unsafe.Pointer(b), dataOffset+abi.MapBucketCount*4+i*uintptr(t.ValueSize))
    			if t.Elem.Pointers() {
    				memclrHasPointers(e, t.Elem.Size_)
    			} else {
    				memclrNoHeapPointers(e, t.Elem.Size_)
    			}
    			b.tophash[i] = emptyOne
    			// If the bucket now ends in a bunch of emptyOne states,
    			// change those to emptyRest states.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache.go

    		return fmt.Errorf("couldn't compute key: %v", err)
    	}
    	elem := &storeElement{Key: key, Object: event.Object}
    	elem.Labels, elem.Fields, err = w.getAttrsFunc(event.Object)
    	if err != nil {
    		return err
    	}
    
    	wcEvent := &watchCacheEvent{
    		Type:            event.Type,
    		Object:          elem.Object,
    		ObjLabels:       elem.Labels,
    		ObjFields:       elem.Fields,
    		Key:             key,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 10:20:57 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  8. 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)
  9. src/encoding/json/decode.go

    		}
    
    		// Prevent infinite loop if v is an interface pointing to its own address:
    		//     var v interface{}
    		//     v = &v
    		if v.Elem().Kind() == reflect.Interface && v.Elem().Elem() == v {
    			v = v.Elem()
    			break
    		}
    		if v.IsNil() {
    			v.Set(reflect.New(v.Type().Elem()))
    		}
    		if v.Type().NumMethod() > 0 && v.CanInterface() {
    			if u, ok := v.Interface().(Unmarshaler); ok {
    				return u, nil, reflect.Value{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 35.3K bytes
    - Viewed (0)
  10. 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)
Back to top