Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for Cmp (0.04 sec)

  1. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    // Fold boolean tests into blocks
    (NE (TESTB (SETL  cmp) (SETL  cmp)) yes no) => (LT  cmp yes no)
    (NE (TESTB (SETLE cmp) (SETLE cmp)) yes no) => (LE  cmp yes no)
    (NE (TESTB (SETG  cmp) (SETG  cmp)) yes no) => (GT  cmp yes no)
    (NE (TESTB (SETGE cmp) (SETGE cmp)) yes no) => (GE  cmp yes no)
    (NE (TESTB (SETEQ cmp) (SETEQ cmp)) yes no) => (EQ  cmp yes no)
    (NE (TESTB (SETNE cmp) (SETNE cmp)) yes no) => (NE  cmp yes no)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		}
    		if cmp := b.Cmp(a); cmp != -item.cmp {
    			t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp)
    		}
    	}
    
    	for _, item := range table {
    		a, b := item.a.DeepCopy(), item.b.DeepCopy()
    		b.AsDec()
    		if cmp := a.Cmp(b); cmp != item.cmp {
    			t.Errorf("%#v: unexpected Cmp: %d", item, cmp)
    		}
    		if cmp := b.Cmp(a); cmp != -item.cmp {
    			t.Errorf("%#v: unexpected inverted Cmp: %d", item, cmp)
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  3. src/math/big/int_test.go

    		var z Int
    		z.Abs(a.z)
    		var e Int
    		e.Set(a.z)
    		if e.Cmp(&zero) < 0 {
    			e.Sub(&zero, &e)
    		}
    		if z.Cmp(&e) != 0 {
    			t.Errorf("got z = %v; want %v", z, e)
    		}
    	}
    }
    
    func testFunZZ(t *testing.T, msg string, f funZZ, a argZZ) {
    	var z Int
    	f(&z, a.x, a.y)
    	if !isNormalized(&z) {
    		t.Errorf("%s%v is not normalized", msg, z)
    	}
    	if (&z).Cmp(a.z) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/_gen/PPC64.rules

    (Equal cmp) => (SETBC [2] cmp)
    (NotEqual cmp) => (SETBCR [2] cmp)
    (LessThan cmp) => (SETBC [0] cmp)
    (FLessThan cmp) => (SETBC [0] cmp)
    (FLessEqual cmp) => (OR (SETBC [2] cmp) (SETBC [0] cmp))
    (GreaterEqual cmp) => (SETBCR [0] cmp)
    (GreaterThan cmp)  => (SETBC [1] cmp)
    (FGreaterEqual cmp) => (OR (SETBC [2] cmp) (SETBC [1] cmp))
    (FGreaterThan cmp)  => (SETBC [1] cmp)
    (LessEqual cmp) => (SETBCR [1] cmp)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 53.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/ARM.rules

    // absorb InvertFlags into branches
    (LT (InvertFlags cmp) yes no) => (GT cmp yes no)
    (GT (InvertFlags cmp) yes no) => (LT cmp yes no)
    (LE (InvertFlags cmp) yes no) => (GE cmp yes no)
    (GE (InvertFlags cmp) yes no) => (LE cmp yes no)
    (ULT (InvertFlags cmp) yes no) => (UGT cmp yes no)
    (UGT (InvertFlags cmp) yes no) => (ULT cmp yes no)
    (ULE (InvertFlags cmp) yes no) => (UGE cmp yes no)
    (UGE (InvertFlags cmp) yes no) => (ULE cmp yes no)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 17:19:36 UTC 2023
    - 90.1K bytes
    - Viewed (0)
  6. pkg/kubelet/pod_workers_test.go

    limitations under the License.
    */
    
    package kubelet
    
    import (
    	"context"
    	"reflect"
    	"strconv"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"google.golang.org/grpc/codes"
    	"google.golang.org/grpc/status"
    	v1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/types"
    	"k8s.io/apimachinery/pkg/util/sets"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Absorb sign and zero extensions into 32-bit comparisons.
    (CMP(W|W|WU|WU)      x (MOV(W|WZ|W|WZ)reg y))   => (CMP(W|W|WU|WU) x y)
    (CMP(W|W|WU|WU)      (MOV(W|WZ|W|WZ)reg x) y)   => (CMP(W|W|WU|WU) x y)
    (CMP(W|W|WU|WU)const (MOV(W|WZ|W|WZ)reg x) [c]) => (CMP(W|W|WU|WU)const x [c])
    
    // Absorb flag constants into branches.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  8. pkg/kubelet/eviction/helpers.go

    func (ms *multiSorter) Sort(pods []*v1.Pod) {
    	ms.pods = pods
    	sort.Sort(ms)
    }
    
    // OrderedBy returns a Sorter that sorts using the cmp functions, in order.
    // Call its Sort method to sort the data.
    func orderedBy(cmp ...cmpFunc) *multiSorter {
    	return &multiSorter{
    		cmp: cmp,
    	}
    }
    
    // Len is part of sort.Interface.
    func (ms *multiSorter) Len() int {
    	return len(ms.pods)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 18:46:33 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/cache/cache_test.go

    	}
    	for name, ni := range snapshot.Nodes {
    		nItem := cache.nodes[name]
    		if diff := cmp.Diff(nItem.info, ni, cmp.AllowUnexported(framework.NodeInfo{})); diff != "" {
    			t.Errorf("Unexpected node info (-want,+got):\n%s", diff)
    		}
    	}
    	if diff := cmp.Diff(cache.assumedPods, snapshot.AssumedPods); diff != "" {
    		t.Errorf("Unexpected assumedPods (-want,+got):\n%s", diff)
    	}
    
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 63.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    			if diff := cmp.Diff(tt.wantLogs, logLines(buf.String())); len(diff) > 0 {
    				t.Errorf("log mismatch (-want +got):\n%s", diff)
    			}
    
    			ignoredFields := sets.NewString("Transformer", "EncryptedObject.EncryptedDEKSource", "UID", "CacheKey")
    
    			gotState := *h.state.Load()
    
    			if diff := cmp.Diff(tt.wantState, gotState,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
Back to top