Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for roundupsize (0.12 sec)

  1. src/runtime/slice.go

    	case et.Size_ == 1:
    		lenmem = uintptr(oldLen)
    		newlenmem = uintptr(newLen)
    		capmem = roundupsize(uintptr(newcap), noscan)
    		overflow = uintptr(newcap) > maxAlloc
    		newcap = int(capmem)
    	case et.Size_ == goarch.PtrSize:
    		lenmem = uintptr(oldLen) * goarch.PtrSize
    		newlenmem = uintptr(newLen) * goarch.PtrSize
    		capmem = roundupsize(uintptr(newcap)*goarch.PtrSize, noscan)
    		overflow = uintptr(newcap) > maxAlloc/goarch.PtrSize
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/runtime/string.go

    	return unsafe.String((*byte)(p), size), unsafe.Slice((*byte)(p), size)
    }
    
    // rawbyteslice allocates a new byte slice. The byte slice is not zeroed.
    func rawbyteslice(size int) (b []byte) {
    	cap := roundupsize(uintptr(size), true)
    	p := mallocgc(cap, nil, false)
    	if cap != uintptr(size) {
    		memclrNoHeapPointers(add(p, uintptr(size)), cap-uintptr(size))
    	}
    
    	*(*slice)(unsafe.Pointer(&b)) = slice{p, size, int(cap)}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/inl_test.go

    			"getm",
    			"getMCache",
    			"isDirectIface",
    			"itabHashFunc",
    			"nextslicecap",
    			"noescape",
    			"pcvalueCacheKey",
    			"rand32",
    			"readUnaligned32",
    			"readUnaligned64",
    			"releasem",
    			"roundupsize",
    			"stackmapdata",
    			"stringStructOf",
    			"subtract1",
    			"subtractb",
    			"tophash",
    			"(*bmap).keys",
    			"(*bmap).overflow",
    			"(*waitq).enqueue",
    			"funcInfo.entry",
    
    			// GC-related ones
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top