Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,175 for zero (0.04 sec)

  1. android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java

        try {
          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // CountDownLatch treats negative timeouts just like zero.
              return latch.await(remainingNanos, NANOSECONDS);
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
        } finally {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  2. src/runtime/arena_test.go

    				t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase)
    			}
    			arena.Free()
    		})
    		t.Run("[]int (cap 0)", func(t *testing.T) {
    			arena := NewUserArena()
    			var sl []int
    			arena.Slice(&sl, 0)
    			if len(sl) != 0 {
    				t.Errorf("expected requested zero-sized slice to still have zero length: got %x, want 0", len(sl))
    			}
    			arena.Free()
    		})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  3. src/slices/slices.go

    			return c
    		}
    	}
    	if len(s1) < len(s2) {
    		return -1
    	}
    	return 0
    }
    
    // CompareFunc is like [Compare] but uses a custom comparison function on each
    // pair of elements.
    // The result is the first non-zero result of cmp; if cmp always
    // returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2),
    // and +1 if len(s1) > len(s2).
    func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 29 14:01:59 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/Uninterruptibles.java

        try {
          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // CountDownLatch treats negative timeouts just like zero.
              return latch.await(remainingNanos, NANOSECONDS);
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  5. src/internal/reflectlite/all_test.go

    }
    
    type S struct {
    	i1 int64
    	i2 int64
    }
    
    func TestBigZero(t *testing.T) {
    	const size = 1 << 10
    	var v [size]byte
    	z := ToInterface(Zero(ValueOf(v).Type())).([size]byte)
    	for i := 0; i < size; i++ {
    		if z[i] != 0 {
    			t.Fatalf("Zero object not all zero, index %d", i)
    		}
    	}
    }
    
    func TestInvalid(t *testing.T) {
    	// Used to have inconsistency between IsValid() and Kind() != Invalid.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/rsc.io/markdown/html.go

    	// TODO: No escaping???
    	if i < len(s) && (s[i] == '\'' || s[i] == '"') {
    		// “A single-quoted attribute value consists of ',
    		// zero or more characters not including ', and a final '.”
    		// “A double-quoted attribute value consists of ",
    		// zero or more characters not including ", and a final ".”
    		if j := strings.IndexByte(s[i+1:], s[i]); j >= 0 {
    			end := i + 1 + j + 1
    			return s[i:end], end, true
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/RISCV64Ops.go

    			faultOnNilArg0: true,
    			faultOnNilArg1: true,
    		},
    
    		// Generic moves and zeros
    
    		// general unaligned zeroing
    		// arg0 = address of memory to zero (in X5, changed as side effect)
    		// arg1 = address of the last element to zero (inclusive)
    		// arg2 = mem
    		// auxint = element size
    		// returns mem
    		//	mov	ZERO, (X5)
    		//	ADD	$sz, X5
    		//	BGEU	Rarg1, X5, -2(PC)
    		{
    			name:      "LoweredZero",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/design/gradle-module-metadata-1.0-specification.md

    - `version`: The version of Gradle. A string
    - `buildId`: The buildId for the Gradle instance. A string
    
    ### `variants` value
    
    This value must contain an array with zero or more elements. Each element must be an object with the following values:
    
    - `name`: The name of the variant. A string. The name must be unique across all variants of the component.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 23:32:14 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ComparisonChain.java

     *       .result();
     * }
     * }</pre>
     *
     * <p>The value of this expression will have the same sign as the <i>first nonzero</i> comparison
     * result in the chain, or will be zero if every comparison result was zero.
     *
     * <p><b>Note:</b> {@code ComparisonChain} instances are <b>immutable</b>. For this utility to work
     * correctly, calls must be chained as illustrated above.
     *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 21 17:28:11 UTC 2022
    - 11.2K bytes
    - Viewed (0)
  10. src/net/cgo_unix.go

    func doBlockingWithCtx[T any](ctx context.Context, lookupName string, blocking func() (T, error)) (T, error) {
    	if err := acquireThread(ctx); err != nil {
    		var zero T
    		return zero, &DNSError{
    			Name:      lookupName,
    			Err:       mapErr(err).Error(),
    			IsTimeout: err == context.DeadlineExceeded,
    		}
    	}
    
    	if ctx.Done() == nil {
    		defer releaseThread()
    		return blocking()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top