Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 61 for Cmp (0.03 sec)

  1. 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)
  2. 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)
  3. pkg/apis/flowcontrol/validation/validation_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package validation
    
    import (
    	"fmt"
    	"math"
    	"testing"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/stretchr/testify/assert"
    	flowcontrolv1 "k8s.io/api/flowcontrol/v1"
    	flowcontrolv1beta1 "k8s.io/api/flowcontrol/v1beta1"
    	flowcontrolv1beta2 "k8s.io/api/flowcontrol/v1beta2"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  4. 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)
  5. src/cmd/asm/internal/asm/testdata/arm.s

    // CMP
    	CMP	$255, R7             // ff0057e3
    	CMP	$4278190080, R9      // ff0459e3
    	CMP	R9<<30, R7           // 090f57e1
    	CMP	R9>>30, R7           // 290f57e1
    	CMP	R9->30, R7           // 490f57e1
    	CMP	R9@>30, R7           // 690f57e1
    	CMP	R9<<R8, R7           // 190857e1
    	CMP	R9>>R8, R7           // 390857e1
    	CMP	R9->R8, R7           // 590857e1
    	CMP	R9@>R8, R7           // 790857e1
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 15 20:51:01 UTC 2023
    - 69K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/asm/internal/asm/testdata/arm64.s

    	CMP	$0xffffffffffa0, R3             // CMP	$281474976710560, R3              // fb0b80921b00e0f27f001beb
    	CMP	$0xf4240, R1                    // CMP	$1000000, R1                      // 1b4888d2fb01a0f23f001beb
    	CMP     $3343198598084851058, R3        // 5bae8ed2db8daef23badcdf2bbcce5f27f001beb
    	CMP	$3, R2
    	CMP	R1, R2
    	CMP	R1->11, R2
    	CMP	R1>>22, R2
    	CMP	R1<<33, R2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 03:28:17 UTC 2023
    - 94.9K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ppc64/ssa.go

    		ssa.OpPPC64LoweredAtomicLoadPtr:
    		// SYNC
    		// MOVB/MOVD/MOVW (Rarg0), Rout
    		// CMP Rout,Rout
    		// BNE 1(PC)
    		// ISYNC
    		ld := ppc64.AMOVD
    		cmp := ppc64.ACMP
    		switch v.Op {
    		case ssa.OpPPC64LoweredAtomicLoad8:
    			ld = ppc64.AMOVBZ
    		case ssa.OpPPC64LoweredAtomicLoad32:
    			ld = ppc64.AMOVWZ
    			cmp = ppc64.ACMPW
    		}
    		arg0 := v.Args[0].Reg()
    		out := v.Reg0()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/ARM64Ops.go

    		// comparisons
    		{name: "CMP", argLength: 2, reg: gp2flags, asm: "CMP", typ: "Flags"},                      // arg0 compare to arg1
    		{name: "CMPconst", argLength: 1, reg: gp1flags, asm: "CMP", aux: "Int64", typ: "Flags"},   // arg0 compare to auxInt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 58.8K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources_test.go

    limitations under the License.
    */
    
    package dynamicresources
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"sort"
    	"sync"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    
    	v1 "k8s.io/api/core/v1"
    	resourcev1alpha2 "k8s.io/api/resource/v1alpha2"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 07:57:10 UTC 2024
    - 61.9K bytes
    - Viewed (0)
Back to top