Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 558 for Positive (0.34 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/shufflesharding/shufflesharding.go

    // 1. deckSize or handSize is not positive
    // 2. handSize is greater than deckSize
    // 3. deckSize is impractically large (greater than 1<<26)
    // 4. required entropy bits of deckSize and handSize is greater than MaxHashBits
    func NewDealer(deckSize, handSize int) (*Dealer, error) {
    	if deckSize <= 0 || handSize <= 0 {
    		return nil, fmt.Errorf("deckSize %d or handSize %d is not positive", deckSize, handSize)
    	}
    	if handSize > deckSize {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 23 08:38:03 UTC 2019
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/MathTesting.java

            public BigInteger apply(BigInteger x) {
              return x.negate();
            }
          };
    
      /*
       * This list contains values that attempt to provoke overflow in integer operations. It contains
       * positive values on or near 2^N for N near multiples of 8 (near byte boundaries).
       */
      static final ImmutableSet<Integer> POSITIVE_INTEGER_CANDIDATES;
    
      static final Iterable<Integer> NEGATIVE_INTEGER_CANDIDATES;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  3. src/sync/waitgroup.go

    // 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
    // positive delta that start when the counter is greater than zero, may happen
    // at any time.
    // Typically this means the calls to Add should execute before the statement
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/os/dir_unix.go

    	// Readdir returns all the FileInfo from the directory in a
    	// single slice".
    	//
    	// But below, we use only negative to mean looping until the
    	// end and positive to mean bounded, with positive
    	// terminating at 0.
    	if n == 0 {
    		n = -1
    	}
    
    	for n != 0 {
    		// Refill the buffer if necessary
    		if d.bufp >= d.nbuf {
    			d.bufp = 0
    			var errno error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 20:11:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. src/time/tick.go

    // The Stop method is no longer necessary to help the garbage collector.
    // (Code may of course still want to call Stop to stop the ticker for other reasons.)
    func NewTicker(d Duration) *Ticker {
    	if d <= 0 {
    		panic("non-positive interval for NewTicker")
    	}
    	// Give the channel a 1-element time buffer.
    	// If the client falls behind while reading, we drop ticks
    	// on the floor until the client catches up.
    	c := make(chan Time, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:21:30 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/MapMaker.java

        checkArgument(
            concurrencyLevel >= 1, "concurrency level (%s) must be at least 1", concurrencyLevel);
        // GWT technically only supports concurrencyLevel == 1, but we silently
        // ignore other positive values.
        return this;
      }
    
      public <K, V> ConcurrentMap<K, V> makeMap() {
        return new ConcurrentHashMap<K, V>(initialCapacity);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 23 18:43:40 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/waitgroup/waitgroup_test.go

    	}
    }
    
    func TestWaitGroupAddFail(t *testing.T) {
    	wg := &SafeWaitGroup{}
    	wg.Add(1)
    	wg.Done()
    	wg.Wait()
    	if err := wg.Add(1); err == nil {
    		t.Errorf("Should return error when add positive after Wait")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 13 05:42:40 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  8. src/math/rand/auto_test.go

    		out = append(out, Int63())
    	}
    
    	// Look for out in Seed(1)'s output.
    	// Strictly speaking, we should look for them in order,
    	// but this is good enough and not significantly more
    	// likely to have a false positive.
    	Seed(1)
    	found := 0
    	for i := 0; i < 1000; i++ {
    		x := Int63()
    		if x == out[found] {
    			found++
    			if found == len(out) {
    				t.Fatalf("found unseeded output in Seed(1) output")
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 25 16:49:48 UTC 2022
    - 1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/prove.go

    	default:
    		panic("unexpected integer size")
    	}
    
    	// Check if the recorded limits can prove that the value is positive
    
    	if l, has := ft.limits[v.ID]; has && (l.min >= 0 || l.umax <= uint64(max)) {
    		return true
    	}
    
    	// Check if v = x+delta, and we can use x's limits to prove that it's positive
    	if x, delta := isConstDelta(v); x != nil {
    		if l, has := ft.limits[x.ID]; has {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/deadcode_test.go

    	"path/filepath"
    	"testing"
    )
    
    func TestDeadcode(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    
    	tmpdir := t.TempDir()
    
    	tests := []struct {
    		src      string
    		pos, neg []string // positive and negative patterns
    	}{
    		{"reflectcall", nil, []string{"main.T.M"}},
    		{"typedesc", nil, []string{"type:main.T"}},
    		{"ifacemethod", nil, []string{"main.T.M"}},
    		{"ifacemethod2", []string{"main.T.M"}, nil},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top