Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 666 for identical (0.28 sec)

  1. src/sync/runtime.go

    // runtime_SemacquireMutex's caller.
    // The different forms of this function just tell the runtime how to present
    // the reason for waiting in a backtrace, and is used to compute some metrics.
    // Otherwise they're functionally identical.
    func runtime_SemacquireMutex(s *uint32, lifo bool, skipframes int)
    func runtime_SemacquireRWMutexR(s *uint32, lifo bool, skipframes int)
    func runtime_SemacquireRWMutex(s *uint32, lifo bool, skipframes int)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 16:32:27 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. src/internal/types/testdata/examples/types.go

    var xint T[int]
    var xbool T[bool]
    
    // Are these two variables of the same type? After all, their underlying
    // types are identical. We consider them to be different because each type
    // instantiation creates a new named type, in this case T<int> and T<bool>
    // even if their underlying types are identical. This is sensible because
    // we might still have methods that have different signatures or behave
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  3. src/slices/sort_benchmark_test.go

    			}
    			cmpFunc := func(a, b *myStruct) int {
    				if n := strings.Compare(a.a, b.a); n != 0 {
    					return n
    				}
    				return cmp.Compare(a.n, b.n)
    			}
    			// Presort the slice so all benchmark iterations are identical.
    			slices.SortFunc(structs, cmpFunc)
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				// Sort the slice twice because slices.SortFunc modifies the slice in place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/c/tf_datatype.h

    #ifdef __cplusplus
    extern "C" {
    #endif
    
    // --------------------------------------------------------------------------
    // TF_DataType holds the type for a scalar value.  E.g., one slot in a tensor.
    // The enum values here are identical to corresponding values in types.proto.
    typedef enum TF_DataType {
      TF_FLOAT = 1,
      TF_DOUBLE = 2,
      TF_INT32 = 3,  // Int32 tensors are always in 'host' memory.
      TF_UINT8 = 4,
      TF_INT16 = 5,
      TF_INT8 = 6,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/go/types/util.go

    	"go/token"
    )
    
    const isTypes2 = false
    
    // cmpPos compares the positions p and q and returns a result r as follows:
    //
    // r <  0: p is before q
    // r == 0: p and q are the same position (but may not be identical)
    // r >  0: p is after q
    //
    // If p and q are in different files, p is before q if the filename
    // of p sorts lexicographically before the filename of q.
    func cmpPos(p, q token.Pos) int { return int(p - q) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/closure.go

    	// Force type conversion from *struct to the func type.
    	cfn := typecheck.ConvNop(addr, clo.Type())
    
    	// non-escaping temp to use, if any.
    	if x := clo.Prealloc; x != nil {
    		if !types.Identical(typ, x.Type()) {
    			panic("closure type does not match order's assigned type")
    		}
    		addr.Prealloc = x
    		clo.Prealloc = nil
    	}
    
    	return walkExpr(cfn, init)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/eclipse/model/WtpFacetTest.groovy

            facet.load(customFacetReader)
            def roundTripped = tmpDir.file("facet.xml")
            facet.store(roundTripped)
    
            then:
            XMLUnit.compareXML(customFacetReader.text, roundTripped.text).identical()
        }
    
        private InputStream getCustomFacetReader() {
            getClass().getResourceAsStream('customOrgEclipseWstCommonProjectFacetCoreXml.xml')
        }
    
        private Facet createSomeFacet() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/compatibility.go

    		t.Errorf("JSON after_roundtrip file is identical and should be removed")
    		jsonNeedsRemove = true
    	}
    	if len(expectedYAMLAfterRoundTrip) == 0 {
    		expectedYAMLAfterRoundTrip = yamlBeforeRoundTrip
    	} else if bytes.Equal(yamlBeforeRoundTrip, expectedYAMLAfterRoundTrip) {
    		t.Errorf("YAML after_roundtrip file is identical and should be removed")
    		yamlNeedsRemove = true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 16:38:32 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/func.go

    		// information further down the call chain to know if we
    		// were testing a method receiver for unexported fields.
    		// It isn't necessary, so just do a sanity check.
    		tp := t.Recv().Type
    
    		if l.X == nil || !types.Identical(l.X.Type(), tp) {
    			base.Fatalf("method receiver")
    		}
    
    	default:
    		n.SetOp(ir.OCALLFUNC)
    		if t.Kind() != types.TFUNC {
    			if o := l; o.Name() != nil && types.BuiltinPkg.Lookup(o.Sym().Name).Def != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/wait/error_test.go

    		t.Fatalf("error should not be wrapped twice")
    	}
    
    	internalErr = errInterrupted{errInterrupted{}}
    	if ErrorInterrupted(internalErr) != internalErr {
    		t.Fatalf("object should be identical")
    	}
    
    	in := errors.New("test")
    	actual, expected := ErrorInterrupted(in), (errInterrupted{in})
    	if actual != expected {
    		t.Fatalf("did not wrap error")
    	}
    	if !errors.Is(actual, errWaitTimeout) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top