Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 741 for zero (0.08 sec)

  1. src/runtime/slice.go

    	new := growslice(old.array, old.cap+num, old.cap, num, et)
    	// growslice does not zero out new[old.cap:new.len] since it assumes that
    	// the memory will be overwritten by an append() that called growslice.
    	// Since the caller of reflect_growslice is not append(),
    	// zero out this region before returning the slice to the reflect package.
    	if !et.Pointers() {
    		oldcapmem := uintptr(old.cap) * et.Size_
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

      private enum TimeoutsToUse {
        ANY(Timeout.values()),
        PAST(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO),
        FUTURE(Timeout.SMALL, Timeout.MAX),
        SMALL(Timeout.SMALL),
        FINITE(Timeout.MIN, Timeout.MINUS_SMALL, Timeout.ZERO, Timeout.SMALL),
        INFINITE(Timeout.LARGE, Timeout.MAX);
    
        final ImmutableList<Timeout> timeouts;
    
        TimeoutsToUse(Timeout... timeouts) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  3. src/text/template/exec.go

    func (s *state) varValue(name string) reflect.Value {
    	for i := s.mark() - 1; i >= 0; i-- {
    		if s.vars[i].name == name {
    			return s.vars[i].value
    		}
    	}
    	s.errorf("undefined variable: %s", name)
    	return zero
    }
    
    var zero reflect.Value
    
    type missingValType struct{}
    
    var missingVal = reflect.ValueOf(missingValType{})
    
    var missingValReflectType = reflect.TypeFor[missingValType]()
    
    func isMissing(v reflect.Value) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. src/log/slog/value.go

    	timeTime time.Time
    )
    
    // TimeValue returns a [Value] for a [time.Time].
    // It discards the monotonic portion.
    func TimeValue(v time.Time) Value {
    	if v.IsZero() {
    		// UnixNano on the zero time is undefined, so represent the zero time
    		// with a nil *time.Location instead. time.Time.Location method never
    		// returns nil, so a Value with any == timeLocation(nil) cannot be
    		// mistaken for any other Value, time.Time or otherwise.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:12:08 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/net/sendfile_linux.go

    	"io"
    	"os"
    )
    
    const supportsSendfile = true
    
    // sendFile copies the contents of r to c using the sendfile
    // system call to minimize copies.
    //
    // if handled == true, sendFile returns the number (potentially zero) of bytes
    // copied and any non-EOF error.
    //
    // if handled == false, sendFile performed no work.
    func sendFile(c *netFD, r io.Reader) (written int64, err error, handled bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. src/internal/abi/abi_generic.go

    //go:build !goexperiment.regabiargs && !amd64 && !arm64 && !loong64 && !ppc64 && !ppc64le && !riscv64
    
    package abi
    
    const (
    	// ABI-related constants.
    	//
    	// In the generic case, these are all zero
    	// which lets them gracefully degrade to ABI0.
    
    	// IntArgRegs is the number of registers dedicated
    	// to passing integer argument values. Result registers are identical
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:38:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. cmd/erasure-metadata-utils.go

    // GetValueWithQuorum returns the first key which occurs >= quorum number of times.
    func (c counterMap[T]) GetValueWithQuorum(quorum int) (T, bool) {
    	var zero T
    	for x, count := range c {
    		if count >= quorum {
    			return x, true
    		}
    	}
    	return zero, false
    }
    
    // figure out the most commonVersions across disk that satisfies
    // the 'writeQuorum' this function returns "" if quorum cannot
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/interfaces.go

    	// ParseResourceVersion takes a resource version argument and
    	// converts it to the storage backend. For watch we should pass to helper.Watch().
    	// Because resourceVersion is an opaque value, the default watch
    	// behavior for non-zero watch is to watch the next value (if you pass
    	// "1", you will see updates from "2" onwards).
    	ParseResourceVersion(resourceVersion string) (uint64, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 07:53:48 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  9. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/tasks/testing/TestDescriptor.java

    import javax.annotation.Nullable;
    
    /**
     * Describes a test. A test may be a single atomic test, such as the execution of a test method, or it may be a
     * composite test, made up of zero or more tests.
     */
    @HasInternalProtocol
    @NonNullApi
    public interface TestDescriptor {
        /**
         * Returns the name of the test.  Not guaranteed to be unique.
         *
         * @return The test name
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 20:33:30 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK-DAG: [[ZERO:%.*]] = "tf.Const"() <{value = dense<0.000000e+00> : tensor<2xf32>}>
      // CHECK-DAG: [[ONE:%.*]] = "tf.Const"() <{value = dense<1.000000e+00> : tensor<2xf32>}>
      // CHECK: [[ADD_N:%.*]] = "tf.AddN"(%arg0, [[ZERO]], [[ONE]])
      // CHECK: return %arg0, %arg0, [[ZERO]], [[ADD_N]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
Back to top