Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 851 for Cmp (0.03 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. staging/src/k8s.io/apimachinery/pkg/util/diff/diff.go

    import (
    	"bytes"
    	"fmt"
    	"reflect"
    	"strings"
    	"text/tabwriter"
    
    	"github.com/google/go-cmp/cmp"
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    func legacyDiff(a, b interface{}) string {
    	return cmp.Diff(a, b)
    }
    
    // StringDiff diffs a and b and returns a human readable diff.
    // DEPRECATED: use github.com/google/go-cmp/cmp.Diff
    func StringDiff(a, b string) string {
    	return legacyDiff(a, b)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top