]> Cypherpunks repositories - gostls13.git/commit
runtime/bytes: fast Compare for byte arrays and strings.
authorKeith Randall <khr@golang.org>
Tue, 14 May 2013 23:05:51 +0000 (16:05 -0700)
committerKeith Randall <khr@golang.org>
Tue, 14 May 2013 23:05:51 +0000 (16:05 -0700)
commitb3946dc119cb89fe9f3cd55daa8d8c7a708274a8
tree390057fc055fe5a503bcb633a051a2e0a14c6fda
parentf1583bb9563827fe132c97798657a6c60e6a0457
runtime/bytes: fast Compare for byte arrays and strings.

Uses SSE instructions to process 16 bytes at a time.

fixes #5354

R=bradfitz, google
CC=golang-dev
https://golang.org/cl/8853048
src/cmd/dist/goc2c.c
src/pkg/bytes/bytes.go
src/pkg/bytes/bytes_decl.go
src/pkg/bytes/bytes_test.go
src/pkg/bytes/compare_test.go [new file with mode: 0644]
src/pkg/runtime/asm_386.s
src/pkg/runtime/asm_amd64.s
src/pkg/runtime/noasm_arm.goc [new file with mode: 0644]
src/pkg/runtime/string.goc