Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 364 for Cmp (0.03 sec)

  1. src/slices/zsortanyfunc.go

    		if limit == 0 {
    			heapSortCmpFunc(data, a, b, cmp)
    			return
    		}
    
    		// If the last partitioning was imbalanced, we need to breaking patterns.
    		if !wasBalanced {
    			breakPatternsCmpFunc(data, a, b, cmp)
    			limit--
    		}
    
    		pivot, hint := choosePivotCmpFunc(data, a, b, cmp)
    		if hint == decreasingHint {
    			reverseRangeCmpFunc(data, a, b, cmp)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  2. 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)
  3. src/math/big/rat_test.go

    	y := NewRat(2, 1)
    	z := y.Quo(x, y)
    	q := NewRat(3, 2)
    	if z.Cmp(q) != 0 {
    		t.Errorf("got %s want %s", z, q)
    	}
    
    	y = NewRat(3, 1)
    	x = NewRat(2, 1)
    	z = y.Quo(x, y)
    	q = NewRat(2, 3)
    	if z.Cmp(q) != 0 {
    		t.Errorf("got %s want %s", z, q)
    	}
    
    	x = NewRat(3, 1)
    	z = x.Quo(x, x)
    	q = NewRat(3, 3)
    	if z.Cmp(q) != 0 {
    		t.Errorf("got %s want %s", z, q)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 07 00:15:59 UTC 2022
    - 18.9K bytes
    - Viewed (0)
  4. src/slices/zsortordered.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package slices
    
    import "cmp"
    
    // insertionSortOrdered sorts data[a:b] using insertion sort.
    func insertionSortOrdered[E cmp.Ordered](data []E, a, b int) {
    	for i := a + 1; i < b; i++ {
    		for j := i; j > a && cmp.Less(data[j], data[j-1]); j-- {
    			data[j], data[j-1] = data[j-1], data[j]
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 23:33:29 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/internal/bytealg/index_ppc64x.s

    	ADD      $20, R7, R9        // R+20 for all bytes to load
    	CMP      R9, LASTBYTE       // Past end? Maybe check for extra?
    	BLT      index4loop         // If not, continue loop
    	CMP      R7, LASTSTR        // Check remainder
    	BLE      index2to16         // Process remainder
    	BR       notfound           // Not found
    
    index5plus:
    	CMP R6, $16     // Check for sep > 16
    	BGT index17plus // Handle large sep
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 21 16:47:45 UTC 2023
    - 31.6K bytes
    - Viewed (0)
  8. android/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)
  9. operator/pkg/compare/compare.go

    		return found && IsLeafNode(treeNode)
    	}, cmp.Ignore()), nil
    }
    
    // genPathIgnoreOpt returns a cmp.Option to ignore paths specified in parameter ignorePaths.
    func genPathIgnoreOpt(ignorePaths []string) cmp.Option {
    	return cmp.FilterPath(func(curPath cmp.Path) bool {
    		cp := strings.Join(pathToStringList(curPath), ".")
    		for _, ip := range ignorePaths {
    			if res, err := filepath.Match(ip, cp); err == nil && res {
    				return true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 01:29:35 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  10. src/crypto/elliptic/elliptic_test.go

    	x, y = curve.Add(x, y, xG, yG)
    	if !isInfinity(x, y) {
    		t.Errorf("x^(q-1) + x != ∞")
    	}
    	x, y = curve.Add(xG, yG, x0, y0)
    	if x.Cmp(xG) != 0 || y.Cmp(yG) != 0 {
    		t.Errorf("x+∞ != x")
    	}
    	x, y = curve.Add(x0, y0, xG, yG)
    	if x.Cmp(xG) != 0 || y.Cmp(yG) != 0 {
    		t.Errorf("∞+x != x")
    	}
    
    	if curve.IsOnCurve(x0, y0) {
    		t.Errorf("IsOnCurve(∞) == true")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top