Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,554 for tcCopy (0.14 sec)

  1. src/cmd/compile/internal/typecheck/func.go

    	}
    	n.SetType(t)
    	return n
    }
    
    // tcCopy typechecks an OCOPY node.
    func tcCopy(n *ir.BinaryExpr) ir.Node {
    	n.SetType(types.Types[types.TINT])
    	n.X = Expr(n.X)
    	n.X = DefaultLit(n.X, nil)
    	n.Y = Expr(n.Y)
    	n.Y = DefaultLit(n.Y, nil)
    	if n.X.Type() == nil || n.Y.Type() == nil {
    		n.SetType(nil)
    		return n
    	}
    
    	// copy([]byte, string)
    	if n.X.Type().IsSlice() && n.Y.Type().IsString() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/typecheck.go

    		return tcClose(n)
    
    	case ir.ODELETE:
    		n := n.(*ir.CallExpr)
    		return tcDelete(n)
    
    	case ir.OAPPEND:
    		n := n.(*ir.CallExpr)
    		return tcAppend(n)
    
    	case ir.OCOPY:
    		n := n.(*ir.BinaryExpr)
    		return tcCopy(n)
    
    	case ir.OCONV:
    		n := n.(*ir.ConvExpr)
    		return tcConv(n)
    
    	case ir.OMAKE:
    		n := n.(*ir.CallExpr)
    		return tcMake(n)
    
    	case ir.ONEW:
    		n := n.(*ir.UnaryExpr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  3. pkg/kubelet/apis/podresources/server_v1_test.go

    func equalInt64s(a, b []int64) bool {
    	if len(a) != len(b) {
    		return false
    	}
    	aCopy := append([]int64{}, a...)
    	sort.Slice(aCopy, func(i, j int) bool { return aCopy[i] < aCopy[j] })
    	bCopy := append([]int64{}, b...)
    	sort.Slice(bCopy, func(i, j int) bool { return bCopy[i] < bCopy[j] })
    	return reflect.DeepEqual(aCopy, bCopy)
    }
    
    func equalStrings(a, b []string) bool {
    	if len(a) != len(b) {
    		return false
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 45.9K bytes
    - Viewed (0)
  4. src/runtime/arena_test.go

    		t.Errorf("Clone did not make a copy: %#v -> %#v", b, bCopy)
    	}
    	if len(b) != len(bCopy) {
    		t.Errorf("Clone made an incorrect copy (bad length): %d -> %d", len(b), len(bCopy))
    	} else {
    		for i := range b {
    			if b[i] != bCopy[i] {
    				t.Errorf("Clone made an incorrect copy (data at index %d): %d -> %d", i, b[i], bCopy[i])
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  5. test/codegen/copy.go

    	// ppc64x:-".*memmove"
    	copy(x[1:], x[:])
    }
    
    func movesmall7() {
    	x := [...]byte{1, 2, 3, 4, 5, 6, 7}
    	// 386:-".*memmove"
    	// amd64:-".*memmove"
    	// arm64:-".*memmove"
    	// ppc64x:-".*memmove"
    	copy(x[1:], x[:])
    }
    
    func movesmall16() {
    	x := [...]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}
    	// amd64:-".*memmove"
    	// ppc64x:".*memmove"
    	copy(x[1:], x[:])
    }
    
    var x [256]byte
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 14:09:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/copy.go

    /*
    Copyright 2023 The Kubernetes Authors.
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
        http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 01:42:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. pkg/controller/deployment/util/deployment_util.go

    func EqualIgnoreHash(template1, template2 *v1.PodTemplateSpec) bool {
    	t1Copy := template1.DeepCopy()
    	t2Copy := template2.DeepCopy()
    	// Remove hash labels from template.Labels before comparing
    	delete(t1Copy.Labels, apps.DefaultDeploymentUniqueLabelKey)
    	delete(t2Copy.Labels, apps.DefaultDeploymentUniqueLabelKey)
    	return apiequality.Semantic.DeepEqual(t1Copy, t2Copy)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 07:09:11 UTC 2023
    - 39.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ir/copy.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ir
    
    import (
    	"cmd/internal/src"
    )
    
    // Copy returns a shallow copy of n.
    func Copy(n Node) Node {
    	return n.copy()
    }
    
    // DeepCopy returns a “deep” copy of n, with its entire structure copied
    // (except for shared nodes like ONAME, ONONAME, OLITERAL, and OTYPE).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_test.cc

        // Ensure that the contents are the same!
        TF_Tensor* tcopy = TFE_TensorHandleResolve(hcopy, status.get());
        TFE_DeleteTensorHandle(hcopy);
        if (TF_GetCode(status.get()) != TF_OK) {
          ADD_FAILURE() << tag;
          continue;
        }
        EXPECT_EQ(TF_TensorByteSize(t), TF_TensorByteSize(tcopy)) << tag;
        EXPECT_EQ(
            0, memcmp(TF_TensorData(t), TF_TensorData(tcopy), TF_TensorByteSize(t)))
            << tag;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  10. src/net/http/httptrace/trace.go

    		if tf.IsNil() {
    			tf.Set(of)
    			continue
    		}
    
    		// Make a copy of tf for tf to call. (Otherwise it
    		// creates a recursive call cycle and stack overflows)
    		tfCopy := reflect.ValueOf(tf.Interface())
    
    		// We need to call both tf and of in some order.
    		newFunc := reflect.MakeFunc(hookType, func(args []reflect.Value) []reflect.Value {
    			tfCopy.Call(args)
    			return of.Call(args)
    		})
    		tv.Field(i).Set(newFunc)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top