Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,023 for Cmp (0.04 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.bash

    	echo $pkg
    	DIR=$GOROOT/src/$pkg
    	go build -gcflags "$FLAGS2 -S" -o /dev/null $pkg &> $DIR/new.txt
    done
    
    echo
    echo
    echo "3) compare assembly files"
    for pkg in `go list std`; do
    	DIR=$GOROOT/src/$pkg
    
    	if cmp $DIR/old.txt $DIR/new.txt &> /dev/null
    	then rm $DIR/old.txt $DIR/new.txt
    	else echo "==> $DIR"
    	fi
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:03:31 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. test/cmp.go

    Aaron Jacobs <******@****.***> 1435103412 +1000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 26 03:38:21 UTC 2015
    - 7.6K bytes
    - Viewed (0)
  4. 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)
  5. src/strings/compare_test.go

    		sa, sb := unsafeString(a), unsafeString(b)
    		cmp := Compare(sa[:len], sb[:len])
    		if cmp != 0 {
    			t.Errorf(`CompareIdentical(%d) = %d`, len, cmp)
    		}
    		if len > 0 {
    			cmp = Compare(sa[:len-1], sb[:len])
    			if cmp != -1 {
    				t.Errorf(`CompareAshorter(%d) = %d`, len, cmp)
    			}
    			cmp = Compare(sa[:len], sb[:len-1])
    			if cmp != 1 {
    				t.Errorf(`CompareBshorter(%d) = %d`, len, cmp)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:33:55 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. 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)
  7. src/crypto/elliptic/p256_test.go

    	}
    
    	// 1×G + 0×G = G
    	x, y = p256.CombinedMult(gx, gy, one, zero)
    	if x.Cmp(gx) != 0 || y.Cmp(gy) != 0 {
    		t.Errorf("1×G + 0×G = (%d, %d), should be (%d, %d)", x, y, gx, gy)
    	}
    
    	// 0×G + 1×G = G
    	x, y = p256.CombinedMult(gx, gy, zero, one)
    	if x.Cmp(gx) != 0 || y.Cmp(gy) != 0 {
    		t.Errorf("0×G + 1×G = (%d, %d), should be (%d, %d)", x, y, gx, gy)
    	}
    
    	// 1×G + 1×G = 2×G
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 31 16:58:48 UTC 2022
    - 4.2K bytes
    - Viewed (0)
  8. 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)
  9. src/cmd/go/testdata/script/mod_skip_write.txt

    cp go.mod go.mod.edit
    ! go list -m all
    stderr 'updates to go.mod needed'
    
    go mod graph
    cmp stdout graph.want
    cmp go.mod go.mod.edit
    
    go mod verify
    stdout '^all modules verified$'
    cmp go.mod go.mod.edit
    
    go mod why rsc.io/sampler
    cmp stdout why.want
    cmp go.mod go.mod.edit
    
    go mod why -m rsc.io/sampler
    cmp stdout why.want
    cmp go.mod go.mod.edit
    
    cp go.mod.orig go.mod
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 23:07:08 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  10. src/internal/bytealg/index_arm64.s

    	MOVWU	3(R2), R6
    loop_7:
    	CMP	R4, R0
    	BHI	not_found
    	MOVWU.P	1(R0), R3
    	CMP	R5, R3
    	BNE	loop_7
    	MOVWU	2(R0), R3
    	CMP	R6, R3
    	BNE	loop_7
    	B	found
    len_6:
    	// R5 and R6 contain 6-byte of sep
    	MOVWU	(R2), R5
    	MOVHU	4(R2), R6
    loop_6:
    	CMP	R4, R0
    	BHI	not_found
    	MOVWU.P	1(R0), R3
    	CMP	R5, R3
    	BNE	loop_6
    	MOVHU	3(R0), R3
    	CMP	R6, R3
    	BNE	loop_6
    	B	found
    len_4_5:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 23 15:54:07 UTC 2018
    - 3.9K bytes
    - Viewed (0)
Back to top