Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 123 for elem1 (0.05 sec)

  1. src/cmd/compile/internal/types2/typexpr.go

    			typ.len = -1
    		}
    		typ.elem = check.varType(e.Elem)
    		if typ.len >= 0 {
    			return typ
    		}
    		// report error if we encountered [...]
    
    	case *syntax.SliceType:
    		typ := new(Slice)
    		setDefType(def, typ)
    		typ.elem = check.varType(e.Elem)
    		return typ
    
    	case *syntax.DotsType:
    		// dots are handled explicitly where they are legal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. src/cmd/go/internal/clean/clean.go

    		}
    		keep(p.GoFiles)
    		keep(p.CgoFiles)
    		keep(p.TestGoFiles)
    		keep(p.XTestGoFiles)
    	}
    
    	_, elem := filepath.Split(p.Dir)
    	var allRemove []string
    
    	// Remove dir-named executable only if this is package main.
    	if p.Name == "main" {
    		allRemove = append(allRemove,
    			elem,
    			elem+".exe",
    			p.DefaultExecName(),
    			p.DefaultExecName()+".exe",
    		)
    	}
    
    	// Remove package test executables.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. src/runtime/sema.go

    // queue adds s to the blocked goroutines in semaRoot.
    func (root *semaRoot) queue(addr *uint32, s *sudog, lifo bool) {
    	s.g = getg()
    	s.elem = unsafe.Pointer(addr)
    	s.next = nil
    	s.prev = nil
    	s.waiters = 0
    
    	var last *sudog
    	pt := &root.treap
    	for t := *pt; t != nil; t = *pt {
    		if t.elem == unsafe.Pointer(addr) {
    			// Already have addr in list.
    			if lifo {
    				// Substitute s in t's place in treap.
    				*pt = s
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/runtime/mfinal.go

    	}
    
    	if uintptr(e.data) != base {
    		// As an implementation detail we allow to set finalizers for an inner byte
    		// of an object if it could come from tiny alloc (see mallocgc for details).
    		if ot.Elem == nil || ot.Elem.Pointers() || ot.Elem.Size_ >= maxTinySize {
    			throw("runtime.SetFinalizer: pointer not at beginning of allocated block")
    		}
    	}
    
    	f := efaceOf(&finalizer)
    	ftyp := f._type
    	if ftyp == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 01:56:56 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/module/module.go

    func checkElem(elem string, kind pathKind) error {
    	if elem == "" {
    		return fmt.Errorf("empty path element")
    	}
    	if strings.Count(elem, ".") == len(elem) {
    		return fmt.Errorf("invalid path element %q", elem)
    	}
    	if elem[0] == '.' && kind == modulePath {
    		return fmt.Errorf("leading dot in path element")
    	}
    	if elem[len(elem)-1] == '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  6. src/runtime/cgocall.go

    		at := (*arraytype)(unsafe.Pointer(t))
    		if !indir {
    			if at.Len != 1 {
    				throw("can't happen")
    			}
    			cgoCheckArg(at.Elem, p, at.Elem.Kind_&abi.KindDirectIface == 0, top, msg)
    			return
    		}
    		for i := uintptr(0); i < at.Len; i++ {
    			cgoCheckArg(at.Elem, p, true, top, msg)
    			p = add(p, at.Elem.Size_)
    		}
    	case abi.Chan, abi.Map:
    		// These types contain internal pointers that will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    	case *types.Basic:
    		return uint32(t.Kind())
    
    	case *aliases.Alias:
    		return h.Hash(aliases.Unalias(t))
    
    	case *types.Array:
    		return 9043 + 2*uint32(t.Len()) + 3*h.Hash(t.Elem())
    
    	case *types.Slice:
    		return 9049 + 2*h.Hash(t.Elem())
    
    	case *types.Struct:
    		var hash uint32 = 9059
    		for i, n := 0, t.NumFields(); i < n; i++ {
    			f := t.Field(i)
    			if f.Anonymous() {
    				hash += 8861
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  8. src/encoding/json/encode.go

    	}
    	se.arrayEnc(e, v, opts)
    	e.ptrLevel--
    }
    
    func newSliceEncoder(t reflect.Type) encoderFunc {
    	// Byte slices get special treatment; arrays don't.
    	if t.Elem().Kind() == reflect.Uint8 {
    		p := reflect.PointerTo(t.Elem())
    		if !p.Implements(marshalerType) && !p.Implements(textMarshalerType) {
    			return encodeByteSlice
    		}
    	}
    	enc := sliceEncoder{newArrayEncoder(t)}
    	return enc.encode
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/facts/facts.go

    	if obj == nil {
    		panic("nil object")
    	}
    	key := key{pkg: obj.Pkg(), obj: obj, t: reflect.TypeOf(ptr)}
    	s.mu.Lock()
    	defer s.mu.Unlock()
    	if v, ok := s.m[key]; ok {
    		reflect.ValueOf(ptr).Elem().Set(reflect.ValueOf(v).Elem())
    		return true
    	}
    	return false
    }
    
    // ExportObjectFact implements analysis.Pass.ExportObjectFact.
    func (s *Set) ExportObjectFact(obj types.Object, fact analysis.Fact) {
    	if obj.Pkg() != s.pkg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

            storage_type_max);
      } else {
        SmallVector<double> scales_vec;
        SmallVector<int64_t> zero_points_vec;
        for (auto elem : scales.getValues<float>()) scales_vec.push_back(elem);
        for (auto elem : zero_points.getValues<int32_t>())
          zero_points_vec.push_back(elem);
        elem_ty = quant::UniformQuantizedPerAxisType::get(
            flags, storage_type, expressed_type, scales_vec, zero_points_vec,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
Back to top