Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 315 for elem2 (0.04 sec)

  1. 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)
  2. src/go/types/gcsizes.go

    	switch t := under(T).(type) {
    	case *Array:
    		// spec: "For a variable x of array type: unsafe.Alignof(x)
    		// is the same as unsafe.Alignof(x[0]), but at least 1."
    		return s.Alignof(t.elem)
    	case *Struct:
    		if len(t.fields) == 0 && _IsSyncAtomicAlign64(T) {
    			// Special case: sync/atomic.align64 is an
    			// empty struct we recognize as a signal that
    			// the struct it contains must be
    			// 64-bit-aligned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stdversion/stdversion.go

    			return named.Origin().Obj()
    		}
    	}
    	return obj
    }
    
    // TODO(adonovan): use go1.21 slices.Contains.
    func slicesContains[S ~[]E, E comparable](slice S, x E) bool {
    	for _, elem := range slice {
    		if elem == x {
    			return true
    		}
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  4. pkg/config/analysis/local/helpers_test.go

    	Group:         "testdata.istio.io",
    	Kind:          "Kind1",
    	Plural:        "Kind1s",
    	Version:       "v1alpha1",
    	Proto:         "google.protobuf.Struct",
    	ReflectType:   reflect.TypeOf(&structpb.Struct{}).Elem(),
    	ProtoPackage:  "github.com/gogo/protobuf/types",
    	ClusterScoped: false,
    	ValidateProto: validation.EmptyValidate,
    }.MustBuild()
    
    func createTestResource(t *testing.T, ns, name, version string) *resource.Instance {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 02 17:36:47 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/inline/inlheur/scoring.go

    		return fmt.Errorf("no clauses")
    	}
    	for _, clause := range clauses {
    		elems := strings.Split(clause, ":")
    		if len(elems) < 2 {
    			return fmt.Errorf("clause %q: expected colon", clause)
    		}
    		if len(elems) != 2 {
    			return fmt.Errorf("clause %q has %d elements, wanted 2", clause,
    				len(elems))
    		}
    		adj, ok := adjStringToVal(elems[0])
    		if !ok {
    			return fmt.Errorf("clause %q: unknown adjustment", clause)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher.go

    	var selectedObjects []runtime.Object
    	for _, obj := range objs {
    		elem, ok := obj.(*storeElement)
    		if !ok {
    			return fmt.Errorf("non *storeElement returned from storage: %v", obj)
    		}
    		if filter(elem.Key, elem.Labels, elem.Fields) {
    			selectedObjects = append(selectedObjects, elem.Object)
    		}
    	}
    	if len(selectedObjects) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 51.8K 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