Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for cutSpace (0.23 sec)

  1. src/math/big/prime_test.go

    	"2385076987",
    	"2738053141",
    	"2009621503",
    	"1502682721",
    	"255866131",
    	"117987841",
    	"587861",
    
    	"6368689",
    	"8725753",
    	"80579735209",
    	"105919633",
    }
    
    func cutSpace(r rune) rune {
    	if unicode.IsSpace(r) {
    		return -1
    	}
    	return r
    }
    
    func TestProbablyPrime(t *testing.T) {
    	nreps := 20
    	if testing.Short() {
    		nreps = 1
    	}
    	for i, s := range primes {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 7.1K bytes
    - Viewed (0)
  2. src/time/format.go

    	for len(prefix) > 0 {
    		if prefix[0] == ' ' {
    			if len(value) > 0 && value[0] != ' ' {
    				return value, errBad
    			}
    			prefix = cutspace(prefix)
    			value = cutspace(value)
    			continue
    		}
    		if len(value) == 0 || value[0] != prefix[0] {
    			return value, errBad
    		}
    		prefix = prefix[1:]
    		value = value[1:]
    	}
    	return value, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:28 UTC 2024
    - 49.3K bytes
    - Viewed (0)
  3. src/runtime/mgclimit.go

    	// phase, then the GC CPU utilization over that cycle, with idle time removed, will
    	// be 8/(8+2) = 80%. Even though the limiter turns on, though, assist should be
    	// unnecessary, as the GC has way more CPU time to outpace the 1 goroutine that's
    	// running.
    	windowTotalTime -= idleTime
    
    	l.accumulate(windowTotalTime-windowGCTime, windowGCTime)
    }
    
    // accumulate adds time to the bucket and signals whether the limiter is enabled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 22:07:41 UTC 2024
    - 17.3K bytes
    - Viewed (0)
Back to top