Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 450 for Cmp (0.08 sec)

  1. src/cmp/cmp.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package cmp provides types and functions related to comparing
    // ordered values.
    package cmp
    
    // Ordered is a constraint that permits any ordered type: any type
    // that supports the operators < <= >= >.
    // If future releases of Go add new ordered types,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  2. src/cmp/cmp_test.go

    func TestLess(t *testing.T) {
    	for _, test := range tests {
    		var b bool
    		switch test.x.(type) {
    		case int:
    			b = cmp.Less(test.x.(int), test.y.(int))
    		case string:
    			b = cmp.Less(test.x.(string), test.y.(string))
    		case float64:
    			b = cmp.Less(test.x.(float64), test.y.(float64))
    		case uintptr:
    			b = cmp.Less(test.x.(uintptr), test.y.(uintptr))
    		}
    		if b != (test.compare < 0) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 23:39:07 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/slices/sort.go

    	n := len(x)
    	// Define cmp(x[-1], target) < 0 and cmp(x[n], target) >= 0 .
    	// Invariant: cmp(x[i - 1], target) < 0, cmp(x[j], target) >= 0.
    	i, j := 0, n
    	for i < j {
    		h := int(uint(i+j) >> 1) // avoid overflow when computing h
    		// i ≤ h < j
    		if cmp(x[h], target) < 0 {
    			i = h + 1 // preserves cmp(x[i - 1], target) < 0
    		} else {
    			j = h // preserves cmp(x[j], target) >= 0
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 23:54:41 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/GeneralRange.java

          int cmp = comparator.compare(getUpperEndpoint(), other.getUpperEndpoint());
          if (cmp > 0 || (cmp == 0 && other.getUpperBoundType() == OPEN)) {
            upEnd = other.getUpperEndpoint();
            upType = other.getUpperBoundType();
          }
        }
    
        if (hasLowBound && hasUpBound) {
          int cmp = comparator.compare(lowEnd, upEnd);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. test/codegen/comparisons.go

    	// arm64:`CMN`,-`CMP`
    	if a < -8 {
    		c1 = 1
    	}
    	// arm64:`CMN`,-`CMP`
    	if a+1 == 0 {
    		c2 = 1
    	}
    	// arm64:`CMN`,-`CMP`
    	if a+3 != 0 {
    		c3 = 1
    	}
    	// arm64:`CMN`,-`CMP`
    	if a+b == 0 {
    		c4 = 1
    	}
    	// arm64:`CMN`,-`CMP`
    	if b+c != 0 {
    		c5 = 1
    	}
    	// arm64:`CMN`,-`CMP`
    	if a == -c {
    		c6 = 1
    	}
    	// arm64:`CMN`,-`CMP`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 16:31:02 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. 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)
  9. src/math/big/arith_ppc64x.s

    	ADD   $-4, R11		// R11 = z_len - 4
    	BDNZ  loop
    
    	// We may have some elements to read
    	CMP R11, $0
    	BEQ final
    
    tail:
    	MOVDU 8(R8), R20
    	ADDZE R20, R24
    	ADD $-1, R11
    	MOVDU R24, 8(R10)
    	CMP R11, $0
    	BEQ final
    
    	MOVDU 8(R8), R20
    	ADDZE R20, R24
    	ADD $-1, R11
    	MOVDU R24, 8(R10)
    	CMP R11, $0
    	BEQ final
    
    	MOVD 8(R8), R20
    	ADDZE R20, R24
    	MOVD R24, 8(R10)
    
    final:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  10. 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)
Back to top