- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 455 for Cmp (0.09 sec)
-
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) -
src/cmp.bash
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:03:31 UTC 2023 - 1.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
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) -
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) -
src/internal/bytealg/compare_arm64.s
CMP R10, R0 BNE chunk16_loop AND $0xf, R6, R6 CBZ R6, samebytes SUBS $8, R6 BLT tail // the length of tail > 8 bytes MOVD.P 8(R0), R4 MOVD.P 8(R2), R5 CMP R4, R5 BNE cmp SUB $8, R6 // compare last 8 bytes tail: MOVD (R0)(R6), R4 MOVD (R2)(R6), R5 CMP R4, R5 BEQ samebytes cmp: REV R4, R4 REV R5, R5 CMP R4, R5 ret: MOVD $1, R0 CNEG HI, R0, R0 RET small:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 18:26:13 UTC 2022 - 2.1K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_retention.txt
# but 'go mod vendor' cannot write go.mod. cp go.mod.toodirect go.mod go list all cmp go.mod go.mod.toodirect # Redundant requirements should be preserved... cp go.mod.redundant go.mod go list all cmp go.mod go.mod.redundant go mod vendor cmp go.mod go.mod.redundant rm -r vendor # ...except by 'go mod tidy'. go mod tidy cmp go.mod go.mod.tidy # A missing "go" version directive should be added.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Sep 20 18:41:57 UTC 2021 - 3K bytes - Viewed (0)