Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. test/codegen/bool.go

    	// ppc64x:"RLDICL","XOR",-"CMP",-"ISEL"
    	return x&1 == 0
    }
    
    func TestSetEq64(x uint64, y uint64) bool {
    	// ppc64x/power10:"SETBC\tCR0EQ",-"ISEL"
    	// ppc64x/power9:"CMP","ISEL",-"SETBC\tCR0EQ"
    	// ppc64x/power8:"CMP","ISEL",-"SETBC\tCR0EQ"
    	b := x == y
    	return b
    }
    func TestSetNeq64(x uint64, y uint64) bool {
    	// ppc64x/power10:"SETBCR\tCR0EQ",-"ISEL"
    	// ppc64x/power9:"CMP","ISEL",-"SETBCR\tCR0EQ"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 13 22:12:32 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/govcs.txt

    ! go get github.com/google/go-cmp
    stderr '^go: GOVCS disallows using git for public github.com/google/go-cmp; see ''go help vcs''$'
    env GOVCS='github.com/google/go-cmp/inner:git,github.com:svn|hg'
    ! go get github.com/google/go-cmp
    stderr '^go: GOVCS disallows using git for public github.com/google/go-cmp; see ''go help vcs''$'
    
    # bad patterns are reported (for more bad patterns, see TestGOVCSErrors)
    env GOVCS='git'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 14:41:02 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/runtime/atomic/atomic_arm.s

    	MOVW	ptr+0(FP), R1
    	MOVW	old+4(FP), R2
    	MOVW	new+8(FP), R3
    casl:
    	LDREX	(R1), R0
    	CMP	R0, R2
    	BNE	casfail
    
    #ifndef GOARM_7
    	MOVB	internal∕cpu·ARM+const_offsetARMHasV7Atomics(SB), R11
    	CMP	$0, R11
    	BEQ	2(PC)
    #endif
    	DMB	MB_ISHST
    
    	STREX	R3, (R1), R0
    	CMP	$0, R0
    	BNE	casl
    	MOVW	$1, R0
    
    #ifndef GOARM_7
    	CMP	$0, R11
    	BEQ	2(PC)
    #endif
    	DMB	MB_ISH
    
    	MOVB	R0, ret+12(FP)
    	RET
    casfail:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. pkg/test/util/assert/assert.go

    package assert
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	"github.com/google/go-cmp/cmp/cmpopts"
    	"google.golang.org/protobuf/testing/protocmp"
    
    	"istio.io/istio/pkg/ptr"
    	"istio.io/istio/pkg/test"
    	"istio.io/istio/pkg/test/util/retry"
    )
    
    var compareErrors = cmp.Comparer(func(x, y error) bool {
    	switch {
    	case x == nil && y == nil:
    		return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 18 17:21:50 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/work_edit.txt

    ! grep go go.work
    
    go work edit -go 1.18
    cmp go.work go.work.want_go_118
    
    go work edit -dropuse m
    cmp go.work go.work.want_dropuse_m
    
    go work edit -replace=x.1@v1.3.0=y.1@v1.4.0 -replace='x.1@v1.4.0 = ../z'
    cmp go.work go.work.want_add_replaces
    
    go work edit -use n -use ../a -use /b -use c -use c
    cmp go.work go.work.want_multiuse
    
    go work edit -dropuse /b -dropuse n
    cmp go.work go.work.want_multidropuse
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  6. src/crypto/subtle/xor_ppc64x.s

    	STXVD2X	VS32, (R3)(R8)
    	STXVD2X	VS33, (R3)(R9)
    	ADD	$32, R8
    	ADD	$-32, R6
    	CMP	R6, $8
    	BLE	small
    	// Case for 8 <= n < 32 bytes
    	// Process 16 bytes if available
    xor16:
    	CMP	R6, $16
    	BLT	xor8
    	LXVD2X	(R4)(R8), VS32
    	LXVD2X	(R5)(R8), VS33
    	XXLXOR	VS32, VS33, VS32
    	STXVD2X	VS32, (R3)(R8)
    	ADD	$16, R8
    	ADD	$-16, R6
    small:
    	CMP	R6, $0
    	BC	12,2,LR		// BEQLR
    xor8:
    #ifdef GOPPC64_power10
    	SLD	$56,R6,R17
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. src/sort/search.go

    //	}
    func Find(n int, cmp func(int) int) (i int, found bool) {
    	// The invariants here are similar to the ones in Search.
    	// Define cmp(-1) > 0 and cmp(n) <= 0
    	// Invariant: cmp(i-1) > 0, cmp(j) <= 0
    	i, j := 0, n
    	for i < j {
    		h := int(uint(i+j) >> 1) // avoid overflow when computing h
    		// i ≤ h < j
    		if cmp(h) > 0 {
    			i = h + 1 // preserves cmp(i-1) > 0
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/PPC64latelower.rules

    // older targets
    (SETBC [2] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [2] (MOVDconst [1]) cmp)
    (SETBCR [2] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [6] (MOVDconst [1]) cmp)
    (SETBC [0] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [0] (MOVDconst [1]) cmp)
    (SETBCR [0] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [4] (MOVDconst [1]) cmp)
    (SETBC [1] cmp) && buildcfg.GOPPC64 <= 9 => (ISELZ [1] (MOVDconst [1]) cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/internal/fmtsort/sort.go

    		return cmp.Compare(aVal.Int(), bVal.Int())
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return cmp.Compare(aVal.Uint(), bVal.Uint())
    	case reflect.String:
    		return cmp.Compare(aVal.String(), bVal.String())
    	case reflect.Float32, reflect.Float64:
    		return cmp.Compare(aVal.Float(), bVal.Float())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/text/internal/tag/tag.go

    		return cmp(s[i*4:i*4+n], key) != -1
    	})
    	i := index * 4
    	if cmp(s[i:i+len(key)], key) != 0 {
    		return -1
    	}
    	return index
    }
    
    // Next finds the next occurrence of key after index x, which must have been
    // obtained from a call to Index using the same key. It returns x+1 or -1.
    func (s Index) Next(key []byte, x int) int {
    	if x++; x*4 < len(s) && cmp(s[x*4:x*4+len(key)], key) == 0 {
    		return x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top