- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for Compare (0.46 sec)
-
src/bytes/compare_test.go
copy(shiftedB, tt.b) cmp := Compare(tt.a, shiftedB) if cmp != tt.i { t.Errorf(`Compare(%q, %q), offset %d = %v; want %v`, tt.a, tt.b, offset, cmp, tt.i) } } } } func TestCompareIdenticalSlice(t *testing.T) { var b = []byte("Hello Gophers!") if Compare(b, b) != 0 { t.Error("b != b") } if Compare(b, b[:1]) != 1 { t.Error("b > b[:1] failed") } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jul 13 23:11:42 GMT 2023 - 6.8K bytes - Viewed (0) -
api/go1.5.txt
pkg go/constant, func BinaryOp(Value, token.Token, Value) Value pkg go/constant, func BitLen(Value) int pkg go/constant, func BoolVal(Value) bool pkg go/constant, func Bytes(Value) []uint8 pkg go/constant, func Compare(Value, token.Token, Value) bool pkg go/constant, func Denom(Value) Value pkg go/constant, func Float32Val(Value) (float32, bool) pkg go/constant, func Float64Val(Value) (float64, bool) pkg go/constant, func Imag(Value) Value
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jul 30 21:14:09 GMT 2015 - 46.6K bytes - Viewed (0) -
src/bytes/bytes.go
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Feb 19 19:51:15 GMT 2024 - 33.8K bytes - Viewed (0) -
doc/go1.17_spec.html
An expression or type is compared to the "cases" inside the "switch" to determine which branch to execute. </p> <pre class="ebnf"> SwitchStmt = ExprSwitchStmt | TypeSwitchStmt . </pre> <p> There are two forms: expression switches and type switches. In an expression switch, the cases contain expressions that are compared against the value of the switch expression.
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
break } if p.arch.Family == sys.S390X { // 3-operand jumps. target = &a[2] prog.From = a[0] if a[1].Reg != 0 { // Compare two registers and jump. prog.Reg = p.getRegister(prog, op, &a[1]) } else { // Compare register with immediate and jump. prog.AddRestSource(a[1]) } break } if p.arch.Family == sys.ARM64 { // Special 3-operand jumps.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 25.3K bytes - Viewed (0) -
doc/go_spec.html
The fields are compared in source order, and comparison stops as soon as two field values differ (or all fields have been compared). </li> <li> Array types are comparable if their array element types are comparable. Two array values are equal if their corresponding element values are equal. The elements are compared in ascending index order, and comparison stops
HTML - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Apr 26 00:39:16 GMT 2024 - 279.6K bytes - Viewed (0) -
api/go1.21.txt
pkg bytes, func ContainsFunc([]uint8, func(int32) bool) bool #54386 pkg bytes, method (*Buffer) AvailableBuffer() []uint8 #53685 pkg bytes, method (*Buffer) Available() int #53685 pkg cmp, func Compare[$0 Ordered]($0, $0) int #59488 pkg cmp, func Less[$0 Ordered]($0, $0) bool #59488 pkg cmp, type Ordered interface {} #59488 pkg context, func AfterFunc(Context, func()) func() bool #57928
Plain Text - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Aug 07 09:39:17 GMT 2023 - 25.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/parse.go
p.errorf("expected g or R0 through R15; found %s", name) return 0 } return uint16(reg) } // Note: There are two changes in the expression handling here // compared to the old yacc/C implementations. Neither has // much practical consequence because the expressions we // see in assembly code are simple, but for the record: // // 1) Evaluation uses uint64; the old one used int64.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 36.9K bytes - Viewed (0) -
src/cmd/asm/internal/asm/testdata/riscv64.s
FMADDS F1, F2, F3, F4 // 43822018 FMSUBS F1, F2, F3, F4 // 47822018 FNMSUBS F1, F2, F3, F4 // 4b822018 FNMADDS F1, F2, F3, F4 // 4f822018 // 11.8: Single-Precision Floating-Point Compare Instructions FEQS F0, F1, X7 // d3a300a0 FLTS F0, F1, X7 // d39300a0 FLES F0, F1, X7 // d38300a0 // 11.9: Single-Precision Floating-Point Classify Instruction FCLASSS F0, X5 // d31200e0
Others - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Mar 22 04:42:21 GMT 2024 - 16.7K bytes - Viewed (0) -
src/bytes/example_test.go
} func ExampleCompare() { // Interpret Compare's result by comparing it to zero. var a, b []byte if bytes.Compare(a, b) < 0 { // a less b } if bytes.Compare(a, b) <= 0 { // a less or equal b } if bytes.Compare(a, b) > 0 { // a greater b } if bytes.Compare(a, b) >= 0 { // a greater or equal b } // Prefer Equal to Compare for equality comparisons. if bytes.Equal(a, b) {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Mar 04 15:54:40 GMT 2024 - 15K bytes - Viewed (1)