Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 312 for negatives (0.22 sec)

  1. 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)
  2. test/fixedbugs/issue28797.go

    package main
    
    import (
    	"fmt"
    )
    
    // test expects f to panic, but not to run out of memory,
    // which is a non-panic fatal error.  OOM results from failure
    // to properly check negative limit.
    func test(f func()) {
    	defer func() {
    		r := recover()
    		if r == nil {
    			panic("panic wasn't recoverable")
    		}
    	}()
    	f()
    }
    
    //go:noinline
    func id(x int) int {
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 07 23:04:58 UTC 2018
    - 900 bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       * #previous()} can retrieve the preceding {@code position} elements.
       *
       * @throws IndexOutOfBoundsException if {@code position} is negative or is greater than {@code
       *     size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      protected AbstractIndexedListIterator(int size, int position) {
        checkPositionIndex(position, size);
        this.size = size;
        this.position = position;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  4. 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)
  5. guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       * #previous()} can retrieve the preceding {@code position} elements.
       *
       * @throws IndexOutOfBoundsException if {@code position} is negative or is greater than {@code
       *     size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      protected AbstractIndexedListIterator(int size, int position) {
        checkPositionIndex(position, size);
        this.size = size;
        this.position = position;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apimachinery/pkg/api/resource/math.go

    // value == result * base ^ scale
    func removeInt64Factors(value int64, base int64) (result int64, times int32) {
    	times = 0
    	result = value
    	negative := result < 0
    	if negative {
    		result = -result
    	}
    	switch base {
    	// allow the compiler to optimize the common cases
    	case 10:
    		for result >= 10 && result%10 == 0 {
    			times++
    			result = result / 10
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 23 13:07:14 UTC 2020
    - 7.3K bytes
    - Viewed (0)
  8. maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

            public abstract String symbol();
    
            public static ScaleUnit getScaleUnit(long size) {
                if (size < 0L) {
                    throw new IllegalArgumentException("file size cannot be negative: " + size);
                }
    
                if (size >= GIGABYTE.bytes()) {
                    return GIGABYTE;
                } else if (size >= MEGABYTE.bytes()) {
                    return MEGABYTE;
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 21:48:41 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_proto.go

    	// 9999-12-31T23:59:59Z inclusive.
    	Seconds int64 `json:"seconds" protobuf:"varint,1,opt,name=seconds"`
    	// Non-negative fractions of a second at nanosecond resolution. Negative
    	// second values with fractions must still have non-negative nanos values
    	// that count forward in time. Must be from 0 to 999,999,999
    	// inclusive. This field may be limited in precision depending on context.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CollectPreconditions.java

        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
        }
        return value;
      }
    
      @CanIgnoreReturnValue
      static long checkNonnegative(long value, String name) {
        if (value < 0) {
          throw new IllegalArgumentException(name + " cannot be negative but was: " + value);
        }
        return value;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Jun 30 10:33:07 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top