Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 82 for makemap (0.15 sec)

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

    	{"interfaceSwitch", funcTag, 70},
    	{"ifaceeq", funcTag, 72},
    	{"efaceeq", funcTag, 72},
    	{"panicrangestate", funcTag, 73},
    	{"deferrangefunc", funcTag, 74},
    	{"rand32", funcTag, 75},
    	{"makemap64", funcTag, 77},
    	{"makemap", funcTag, 78},
    	{"makemap_small", funcTag, 79},
    	{"mapaccess1", funcTag, 80},
    	{"mapaccess1_fast32", funcTag, 81},
    	{"mapaccess1_fast64", funcTag, 82},
    	{"mapaccess1_faststr", funcTag, 83},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. src/runtime/map_fast64.go

    					hash := t.Hasher(k, uintptr(h.hash0))
    					if hash&newbit != 0 {
    						useY = 1
    					}
    				}
    
    				b.tophash[i] = evacuatedX + useY // evacuatedX + 1 == evacuatedY, enforced in makemap
    				dst := &xy[useY]                 // evacuation destination
    
    				if dst.i == abi.MapBucketCount {
    					dst.b = h.newoverflow(t, dst.b)
    					dst.i = 0
    					dst.k = add(unsafe.Pointer(dst.b), dataOffset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/runtime/map_faststr.go

    					hash := t.Hasher(k, uintptr(h.hash0))
    					if hash&newbit != 0 {
    						useY = 1
    					}
    				}
    
    				b.tophash[i] = evacuatedX + useY // evacuatedX + 1 == evacuatedY, enforced in makemap
    				dst := &xy[useY]                 // evacuation destination
    
    				if dst.i == abi.MapBucketCount {
    					dst.b = h.newoverflow(t, dst.b)
    					dst.i = 0
    					dst.k = add(unsafe.Pointer(dst.b), dataOffset)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Striped.java

          super(stripes);
          this.size = (mask == ALL_SET) ? Integer.MAX_VALUE : mask + 1;
          this.supplier = supplier;
          this.locks = new MapMaker().weakValues().makeMap();
        }
    
        @Override
        public L getAt(int index) {
          if (size != Integer.MAX_VALUE) {
            Preconditions.checkElementIndex(index, size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 20:55:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/Striped.java

          super(stripes);
          this.size = (mask == ALL_SET) ? Integer.MAX_VALUE : mask + 1;
          this.supplier = supplier;
          this.locks = new MapMaker().weakValues().makeMap();
        }
    
        @Override
        public L getAt(int index) {
          if (size != Integer.MAX_VALUE) {
            Preconditions.checkElementIndex(index, size());
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 10 20:55:18 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. test/live.go

    type T40 struct {
    	m map[int]int
    }
    
    //go:noescape
    func useT40(*T40)
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40()
    	_ = t
    	printnl()
    }
    
    func good40() {
    	ret := T40{}              // ERROR "stack object ret T40$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18K bytes
    - Viewed (0)
  7. src/net/rpc/server.go

    		return
    	}
    	if argIsValue {
    		argv = argv.Elem()
    	}
    
    	replyv = reflect.New(mtype.ReplyType.Elem())
    
    	switch mtype.ReplyType.Elem().Kind() {
    	case reflect.Map:
    		replyv.Elem().Set(reflect.MakeMap(mtype.ReplyType.Elem()))
    	case reflect.Slice:
    		replyv.Elem().Set(reflect.MakeSlice(mtype.ReplyType.Elem(), 0, 0))
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  8. test/live_regabi.go

    type T40 struct {
    	m map[int]int
    }
    
    //go:noescape
    func useT40(*T40)
    
    func newT40() *T40 {
    	ret := T40{}
    	ret.m = make(map[int]int, 42) // ERROR "live at call to makemap: &ret$"
    	return &ret
    }
    
    func bad40() {
    	t := newT40()
    	_ = t
    	printnl()
    }
    
    func good40() {
    	ret := T40{}              // ERROR "stack object ret T40$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 05 20:34:30 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  9. src/reflect/value.go

    		panic("reflect.MakeChan: unidirectional channel type")
    	}
    	t := typ.common()
    	ch := makechan(t, buffer)
    	return Value{t, ch, flag(Chan)}
    }
    
    // MakeMap creates a new map with the specified type.
    func MakeMap(typ Type) Value {
    	return MakeMapWithSize(typ, 0)
    }
    
    // MakeMapWithSize creates a new map with the specified type
    // and initial space for approximately n elements.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/staticinit/sched.go

    		if n.Y.Op() != ir.OLITERAL || constant.Sign(n.Y.Val()) == 0 {
    			return true
    		}
    
    	// Only possible side effect is panic on invalid size,
    	// but many makechan and makemap use size zero, which is definitely OK.
    	case ir.OMAKECHAN, ir.OMAKEMAP:
    		n := n.(*ir.MakeExpr)
    		if !ir.IsConst(n.Len, constant.Int) || constant.Sign(n.Len.Val()) != 0 {
    			return true
    		}
    
    	// Only possible side effect is panic on invalid size.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top