Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for needMax (0.17 sec)

  1. src/runtime/mpagealloc_64bit.go

    	haveMin := s.min.Load()
    	haveMax := s.max.Load()
    	needMin := alignDown(uintptr(chunkIndex(base)), physPageSize/scSize)
    	needMax := alignUp(uintptr(chunkIndex(limit)), physPageSize/scSize)
    
    	// We need a contiguous range, so extend the range if there's no overlap.
    	if needMax < haveMin {
    		needMax = haveMin
    	}
    	if haveMax != 0 && needMin > haveMax {
    		needMin = haveMax
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 03 11:00:10 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/benchmark/bench.go

    // makeBenchString makes a benchmark string consumable by Go's benchmarking tools.
    func makeBenchString(name string) string {
    	needCap := true
    	ret := []rune("Benchmark")
    	for _, r := range name {
    		if unicode.IsSpace(r) {
    			needCap = true
    			continue
    		}
    		if needCap {
    			r = unicode.ToUpper(r)
    			needCap = false
    		}
    		ret = append(ret, r)
    	}
    	return string(ret)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 30 18:10:36 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top