]> Cypherpunks repositories - gostls13.git/commit
strings: add Compare(x, y string) int, for symmetry with bytes.Compare
authorAlan Donovan <adonovan@google.com>
Wed, 14 Jan 2015 23:09:36 +0000 (18:09 -0500)
committerAlan Donovan <adonovan@google.com>
Thu, 15 Jan 2015 17:17:05 +0000 (17:17 +0000)
commit90ce1936e32f46de4c64752dfc54df75ec5758f0
tree56b9706e454514bff63dfff802f68b6b6694de3e
parentee3a1ff6fd11cd8fab3d3f416c85816af7bef4d1
strings: add Compare(x, y string) int, for symmetry with bytes.Compare

The implementation is the same assembly (or Go) routine.

Change-Id: Ib937c461c24ad2d5be9b692b4eed40d9eb031412
Reviewed-on: https://go-review.googlesource.com/2828
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/asm_386.s
src/runtime/asm_amd64.s
src/runtime/asm_amd64p32.s
src/runtime/noasm.go
src/strings/compare_test.go [new file with mode: 0644]
src/strings/strings_decl.go