]> Cypherpunks repositories - gostls13.git/commit
crypto/sha1: add s390x assembly implementation
authorMichael Munday <munday@ca.ibm.com>
Mon, 18 Apr 2016 21:41:50 +0000 (17:41 -0400)
committerMichael Munday <munday@ca.ibm.com>
Fri, 22 Apr 2016 05:27:51 +0000 (05:27 +0000)
commit63ceeafa308b99e6b7d5480521b83360b4f6b2fd
treeb5daa4a20461f38e97b6e0ce62cf48e27ae7ffac
parent7085fb31dfb1a6b447a139064a4a692677284132
crypto/sha1: add s390x assembly implementation

Use the compute intermediate message digest (KIMD) instruction
when possible. Adds test to check fallback code path in case
KIMD is not available.

Benchmark changes:
Hash8Bytes  3.4x
Hash1K      9.3x
Hash8K      10.9x

Change-Id: Ibcd71a886dfd7b3822042235b4f4eaa7a148036b
Reviewed-on: https://go-review.googlesource.com/22350
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/crypto/sha1/fallback_test.go [new file with mode: 0644]
src/crypto/sha1/sha1_test.go
src/crypto/sha1/sha1block_decl.go
src/crypto/sha1/sha1block_generic.go
src/crypto/sha1/sha1block_s390x.go [new file with mode: 0644]
src/crypto/sha1/sha1block_s390x.s [new file with mode: 0644]