Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1491)

Delta Between Two Patch Sets: src/pkg/bytes/bytes_decl.go

Issue 8056043: code review 8056043: runtime: Implement faster equals for strings and bytes. (Closed)
Left Patch Set: diff -r 7505bf6d8988 https://khr%40golang.org@code.google.com/p/go/ Created 10 years, 12 months ago
Right Patch Set: diff -r 52e3407d249f https://khr%40golang.org@code.google.com/p/go/ Created 10 years, 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/bytes/asm_amd64.s ('k') | src/pkg/bytes/bytes_test.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2010 The Go Authors. All rights reserved. 1 // Copyright 2010 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 package bytes 5 package bytes
6 6
7 //go:noescape 7 //go:noescape
8 8
9 // IndexByte returns the index of the first instance of c in s, or -1 if c is no t present in s. 9 // IndexByte returns the index of the first instance of c in s, or -1 if c is no t present in s.
10 func IndexByte(s []byte, c byte) int // asm_$GOARCH.s 10 func IndexByte(s []byte, c byte) int // asm_$GOARCH.s
11 11
12 //go:noescape 12 //go:noescape
13 13
14 // Equal returns a boolean reporting whether a == b. 14 // Equal returns a boolean reporting whether a == b.
15 // A nil argument is equivalent to an empty slice. 15 // A nil argument is equivalent to an empty slice.
16 func Equal(a, b []byte) bool // asm_$GOARCH.s or ../runtime/asm_$GOARCH.s 16 func Equal(a, b []byte) bool // asm_arm.s or ../runtime/asm_{386,amd64}.s
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b