Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Cmp (0.02 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. 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)
  6. 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)
  7. src/cmd/compile/internal/types/type.go

    	return t.kind.String()
    }
    
    // Cmp is a comparison between values a and b.
    //
    //	-1 if a < b
    //	 0 if a == b
    //	 1 if a > b
    type Cmp int8
    
    const (
    	CMPlt = Cmp(-1)
    	CMPeq = Cmp(0)
    	CMPgt = Cmp(1)
    )
    
    // Compare compares types for purposes of the SSA back
    // end, returning a Cmp (one of CMPlt, CMPeq, CMPgt).
    // The answers are correct for an optimizer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  8. src/math/big/float_test.go

    		x := makeFloat(test.x)
    		s := x.Sign()
    		if s != test.s {
    			t.Errorf("%s.Sign() = %d; want %d", test.x, s, test.s)
    		}
    	}
    }
    
    // alike(x, y) is like x.Cmp(y) == 0 but also considers the sign of 0 (0 != -0).
    func alike(x, y *Float) bool {
    	return x.Cmp(y) == 0 && x.Signbit() == y.Signbit()
    }
    
    func alike32(x, y float32) bool {
    	// we can ignore NaNs
    	return x == y && math.Signbit(float64(x)) == math.Signbit(float64(y))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 51.9K bytes
    - Viewed (0)
  9. pkg/kubelet/status/status_manager_test.go

    limitations under the License.
    */
    
    package status
    
    import (
    	"fmt"
    	"math/rand"
    	"os"
    	"reflect"
    	"strconv"
    	"strings"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/stretchr/testify/assert"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/errors"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 68.1K bytes
    - Viewed (0)
  10. pkg/kubelet/nodestatus/setters_test.go

    */
    
    package nodestatus
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"net"
    	"sort"
    	"strconv"
    	"testing"
    	"time"
    
    	cadvisorapiv1 "github.com/google/cadvisor/info/v1"
    	"github.com/google/go-cmp/cmp"
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    
    	v1 "k8s.io/api/core/v1"
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/resource"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
Back to top