Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for nelem (0.07 sec)

  1. src/reflect/all_test.go

    	isValid(m.Func)
    	isNonNil(v.Elem().Field(0).Interface())
    	isNonNil(v.Elem().Field(1).Interface())
    	isNonNil(v.Elem().Field(2).Field(2).Index(0))
    	isNonNil(v.Elem().FieldByName("X").Interface())
    	isNonNil(v.Elem().FieldByName("Y").Interface())
    	isNonNil(v.Elem().FieldByName("Z").Interface())
    	isNonNil(v.Elem().FieldByName("S").Index(0).Interface())
    	isNonNil(v.Type().Method(0).Func.Interface())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. src/reflect/value.go

    		k := *(*string)(key.ptr)
    		if elem.typ() == nil {
    			mapdelete_faststr(v.typ(), v.pointer(), k)
    			return
    		}
    		elem.mustBeExported()
    		elem = elem.assignTo("reflect.Value.SetMapIndex", tt.Elem, nil)
    		var e unsafe.Pointer
    		if elem.flag&flagIndir != 0 {
    			e = elem.ptr
    		} else {
    			e = unsafe.Pointer(&elem.ptr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/pkg.go

    func (p *Package) exeFromImportPath() string {
    	_, elem := pathpkg.Split(p.ImportPath)
    	if cfg.ModulesEnabled {
    		// If this is example.com/mycmd/v2, it's more useful to
    		// install it as mycmd than as v2. See golang.org/issue/24667.
    		if elem != p.ImportPath && isVersionElement(elem) {
    			_, elem = pathpkg.Split(pathpkg.Dir(p.ImportPath))
    		}
    	}
    	return elem
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/generic.rules

    // indexing operations
    // Note: bounds check has already been done
    (PtrIndex <t> ptr idx) && config.PtrSize == 4 && is32Bit(t.Elem().Size()) => (AddPtr ptr (Mul32 <typ.Int> idx (Const32 <typ.Int> [int32(t.Elem().Size())])))
    (PtrIndex <t> ptr idx) && config.PtrSize == 8 => (AddPtr ptr (Mul64 <typ.Int> idx (Const64 <typ.Int> [t.Elem().Size()])))
    
    // struct operations
    (StructSelect (StructMake1 x)) => x
    (StructSelect [0] (StructMake2 x _)) => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  5. pkg/api/pod/util_test.go

    		return resourcePaths
    	}
    
    	if strings.Contains(strings.ToLower(name), resourcename) {
    		resourcePaths.Insert(path.String())
    	}
    
    	switch tp.Kind() {
    	case reflect.Pointer:
    		resourcePaths.Insert(sets.List[string](collectResourcePaths(t, resourcename, path, name, tp.Elem()))...)
    	case reflect.Struct:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  6. tensorflow/c/c_api.cc

                                  const tensorflow::TensorShape& shape) {
      static char empty;
      int64_t nelems = 1;
      std::vector<int64_t> dims;
      dims.reserve(shape.dims());
      for (int i = 0; i < shape.dims(); ++i) {
        dims.push_back(shape.dim_size(i));
        nelems *= shape.dim_size(i);
      }
      CHECK_EQ(nelems, 0);
      return TF_NewTensor(
          dtype, reinterpret_cast<const int64_t*>(dims.data()), shape.dims(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  7. src/runtime/proc.go

    	s := pp.sudogcache[n-1]
    	pp.sudogcache[n-1] = nil
    	pp.sudogcache = pp.sudogcache[:n-1]
    	if s.elem != nil {
    		throw("acquireSudog: found s.elem != nil in cache")
    	}
    	releasem(mp)
    	return s
    }
    
    //go:nosplit
    func releaseSudog(s *sudog) {
    	if s.elem != nil {
    		throw("runtime: sudog with non-nil elem")
    	}
    	if s.isSelect {
    		throw("runtime: sudog with non-false isSelect")
    	}
    	if s.next != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewriteRISCV64.go

    	v_0 := v.Args[0]
    	b := v.Block
    	typ := &b.Func.Config.Types
    	// match: (LocalAddr <t> {sym} base mem)
    	// cond: t.Elem().HasPointers()
    	// result: (MOVaddr {sym} (SPanchored base mem))
    	for {
    		t := v.Type
    		sym := auxToSym(v.Aux)
    		base := v_0
    		mem := v_1
    		if !(t.Elem().HasPointers()) {
    			break
    		}
    		v.reset(OpRISCV64MOVaddr)
    		v.Aux = symToAux(sym)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 205.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    (OffPtr [off] ptr) => (ADDconst [off] ptr)
    
    (Addr {sym} base) => (MOVDaddr {sym} base)
    (LocalAddr <t> {sym} base mem) && t.Elem().HasPointers() => (MOVDaddr {sym} (SPanchored base mem))
    (LocalAddr <t> {sym} base _)  && !t.Elem().HasPointers() => (MOVDaddr {sym} base)
    
    // loads
    (Load <t> ptr mem) && t.IsBoolean() => (MOVBUload ptr mem)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  10. pkg/apis/batch/validation/validation_test.go

    		`America/Argentina/Ushuaia`,
    		`America/Aruba`,
    		`America/Asuncion`,
    		`America/Atikokan`,
    		`America/Atka`,
    		`America/Bahia`,
    		`America/Bahia_Banderas`,
    		`America/Barbados`,
    		`America/Belem`,
    		`America/Belize`,
    		`America/Blanc-Sablon`,
    		`America/Boa_Vista`,
    		`America/Bogota`,
    		`America/Boise`,
    		`America/Buenos_Aires`,
    		`America/Cambridge_Bay`,
    		`America/Campo_Grande`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 20:49:09 UTC 2024
    - 124.3K bytes
    - Viewed (0)
Back to top