Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for srcCopy (0.22 sec)

  1. src/net/addrselect_test.go

    				inCopy[j], inCopy[k] = inCopy[k], inCopy[j]
    				srcCopy[j], srcCopy[k] = srcCopy[k], srcCopy[j]
    			}
    			sortByRFC6724withSrcs(inCopy, srcCopy)
    			if !reflect.DeepEqual(inCopy, tt.want) {
    				t.Errorf("test %d, starting backwards:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want)
    			}
    		}
    
    	}
    
    }
    
    func TestRFC6724PolicyTableOrder(t *testing.T) {
    	for i := 0; i < len(rfc6724policyTable)-1; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 05 07:16:00 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  2. test/strcopy.go

    Brad Fitzpatrick <******@****.***> 1528820198 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 12 19:10:34 UTC 2018
    - 674 bytes
    - Viewed (0)
  3. guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        final int len = string.length();
        char[] strCopy = new char[len * Integer.highestOneBit(count)];
        string.getChars(0, len, strCopy, 0);
    
        char[] array = new char[len * count];
    
        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        final int len = string.length();
        char[] strCopy = new char[len * Integer.highestOneBit(count)];
        string.getChars(0, len, strCopy, 0);
    
        char[] array = new char[len * count];
    
        int strCopyLen = len;
        int pos = 0;
        while (count != 0) {
          if ((count & 1) != 0) {
            System.arraycopy(strCopy, 0, array, pos, strCopyLen);
            pos += strCopyLen;
          }
          count >>= 1;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  5. pkg/kubelet/status/state/state.go

    // Clone returns a copy of PodResourceAllocation
    func (pr PodResourceAllocation) Clone() PodResourceAllocation {
    	prCopy := make(PodResourceAllocation)
    	for pod := range pr {
    		prCopy[pod] = make(map[string]v1.ResourceList)
    		for container, alloc := range pr[pod] {
    			prCopy[pod][container] = alloc.DeepCopy()
    		}
    	}
    	return prCopy
    }
    
    // Reader interface used to read current pod resource allocation state
    type Reader interface {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc

      void runOnOperation() override;
    };
    
    template <typename SrcOp>
    class DequantizeConverter : public OpRewritePattern<SrcOp> {
     public:
      using OpRewritePattern<SrcOp>::OpRewritePattern;
    
      LogicalResult matchAndRewrite(SrcOp srcop,
                                    PatternRewriter &rewriter) const final {
        Operation *op = srcop.getOperation();
        bool allTypesFp = true;
        bool allTypesQuantizedOrInt = true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. pkg/controller/deployment/recreate_test.go

    		for n, size := range test.oldRSSizes {
    			rs := newReplicaSet(test.d, fmt.Sprintf("%s-%d", test.d.Name, n), size)
    			oldRSs = append(oldRSs, rs)
    
    			rsCopy := rs.DeepCopy()
    
    			zero := int32(0)
    			rsCopy.Spec.Replicas = &zero
    			expected = append(expected, rsCopy)
    
    			if *(oldRSs[n].Spec.Replicas) == *(expected[n].(*apps.ReplicaSet).Spec.Replicas) {
    				t.Errorf("broken test - original and expected RS have the same size")
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 08 09:10:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/server/filters/timeout.go

    	var tw timeoutWriter
    	tw, w = newTimeoutWriter(w)
    
    	// Make a copy of request and work on it in new goroutine
    	// to avoid race condition when accessing/modifying request (e.g. headers)
    	rCopy := r.Clone(r.Context())
    	go func() {
    		defer func() {
    			err := recover()
    			// do not wrap the sentinel ErrAbortHandler panic value
    			if err != nil && err != http.ErrAbortHandler {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go

    		if !compatibleValueTypes(minType, t) {
    			return nil, fmt.Errorf("incompatible types: %v %v", *minType, *t)
    		}
    		if ratio, _ := Scale(1, t.Unit, minType.Unit); ratio < 1 {
    			minType = t
    		}
    	}
    	rcopy := *minType
    	return &rcopy, nil
    }
    
    func compatibleValueTypes(v1, v2 *profile.ValueType) bool {
    	if v1 == nil || v2 == nil {
    		return true // No grounds to disqualify.
    	}
    	// Remove trailing 's' to permit minor mismatches.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top