]> Cypherpunks repositories - gostls13.git/commit
hash/crc32: use vector instructions on s390x
authorChris Zou <chriszou@ca.ibm.com>
Mon, 18 Apr 2016 23:30:17 +0000 (19:30 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Fri, 22 Apr 2016 18:07:15 +0000 (18:07 +0000)
commit5833d843de4d774f6b76e982b170f42b8e94a198
treeb4e4cd0ddc3ec1676993df6a399955f10e47330d
parent7879e9193b39e6455ae03f2baace9c41f6393ee4
hash/crc32: use vector instructions on s390x

The input buffer is aligned to a doubleword boundary to
improve performance of the vector instructions. The pure
Go implementation is used to align the input data, and is
also used when the vector instructions are not available
or the data length is less than 64 bytes.

Change-Id: Ie259a5f2f1562bcc17961c99e5776c99091d6bed
Reviewed-on: https://go-review.googlesource.com/22201
Reviewed-by: Michael Munday <munday@ca.ibm.com>
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/hash/crc32/crc32_generic.go
src/hash/crc32/crc32_s390x.go [new file with mode: 0644]
src/hash/crc32/crc32_s390x.s [new file with mode: 0644]