Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,010 for negatives (0.26 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/v1/defaults_test.go

    			want: &KMSConfiguration{Timeout: defaultTimeout, CacheSize: &ten, APIVersion: defaultAPIVersion},
    		},
    		{
    			desc: "negative cache size supplied",
    			in:   &KMSConfiguration{CacheSize: &negative},
    			want: &KMSConfiguration{Timeout: defaultTimeout, CacheSize: &negative, APIVersion: defaultAPIVersion},
    		},
    		{
    			desc: "cache size not supplied but API version is v2",
    			in:   &KMSConfiguration{APIVersion: "v2"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 18 20:54:24 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. src/math/rand/v2/rand.go

    // Uint64 returns a pseudo-random 64-bit value as a uint64.
    func (r *Rand) Uint64() uint64 { return r.src.Uint64() }
    
    // Int32 returns a non-negative pseudo-random 31-bit integer as an int32.
    func (r *Rand) Int32() int32 { return int32(r.src.Uint64() >> 33) }
    
    // Int returns a non-negative pseudo-random int.
    func (r *Rand) Int() int { return int(uint(r.src.Uint64()) << 1 >> 1) }
    
    // Uint returns a pseudo-random uint.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:25:49 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. src/archive/tar/strconv.go

    // This function may return negative numbers.
    // If parsing fails or an integer overflow occurs, err will be set.
    func (p *parser) parseNumeric(b []byte) int64 {
    	// Check for base-256 (binary) format first.
    	// If the first bit is set, then all following bits constitute a two's
    	// complement encoded number in big-endian byte order.
    	if len(b) > 0 && b[0]&0x80 != 0 {
    		// Handling negative numbers relies on the following identity:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       * @throws IllegalArgumentException if {@code permitsPerSecond} is negative or zero or {@code
       *     warmupPeriod} is negative
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public static RateLimiter create(double permitsPerSecond, long warmupPeriod, TimeUnit unit) {
        checkArgument(warmupPeriod >= 0, "warmupPeriod must not be negative: %s", warmupPeriod);
        return create(
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  5. test/append1.go

    	_ = append(s, make([]int, 0))     // ERROR "cannot use make\(\[\]int, 0\) \(value of type \[\]int\) as int value in argument to append"
    	_ = append(s, make([]int, -1)...) // ERROR "negative len argument in make|index -1.* must not be negative"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 22:28:39 UTC 2022
    - 856 bytes
    - Viewed (0)
  6. src/go/types/array.go

    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    // A negative length indicates an unknown length.
    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    func (a *Array) Len() int64 { return a.len }
    
    // Elem returns element type of array a.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  7. pkg/test/framework/label/filter.go

    			continue
    		}
    
    		var negative bool
    		switch p[0] {
    		case '-':
    			negative = true
    			p = p[1:]
    		case '+':
    			p = p[1:]
    		}
    
    		if !userLabelRegex.MatchString(p) {
    			return Selector{}, fmt.Errorf("invalid label name: %q", p)
    		}
    
    		l := Instance(p)
    		if !all.contains(l) {
    			log.Warnf("unknown label name: %q", p)
    			continue
    		}
    
    		if negative {
    			absent = append(absent, l)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. src/sync/waitgroup.go

    	sema  uint32
    }
    
    // Add adds delta, which may be negative, to the [WaitGroup] counter.
    // If the counter becomes zero, all goroutines blocked on [WaitGroup.Wait] are released.
    // If the counter goes negative, Add panics.
    //
    // Note that calls with a positive delta that occur when the counter is zero
    // must happen before a Wait. Calls with a negative delta, or calls with a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. pkg/kubelet/apis/config/validation/validation.go

    	}
    	if kc.EventBurst < 0 {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: eventBurst (--event-burst) %v must not be a negative number", kc.EventBurst))
    	}
    	if kc.EventRecordQPS < 0 {
    		allErrors = append(allErrors, fmt.Errorf("invalid configuration: eventRecordQPS (--event-qps) %v must not be a negative number", kc.EventRecordQPS))
    	}
    	if kc.HealthzPort != 0 && utilvalidation.IsValidPortNum(int(kc.HealthzPort)) != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  10. src/math/rand/rand.go

    }
    
    // Int31 returns a non-negative pseudo-random 31-bit integer as an int32.
    func (r *Rand) Int31() int32 { return int32(r.Int63() >> 32) }
    
    // Int returns a non-negative pseudo-random int.
    func (r *Rand) Int() int {
    	u := uint(r.Int63())
    	return int(u << 1 >> 1) // clear sign bit if int == int32
    }
    
    // Int63n returns, as an int64, a non-negative pseudo-random number in the half-open interval [0,n).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:09:08 UTC 2024
    - 16.9K bytes
    - Viewed (0)
Back to top