1
0
mirror of https://github.com/golang/go synced 2024-11-23 14:10:05 -07:00

crypto/sha1: disable crashing AVX2 optimizations for now

Updates #15617

Change-Id: I2104776f8e789d987b4f2f7f08f2ebe979b747a1
Reviewed-on: https://go-review.googlesource.com/23001
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Brad Fitzpatrick 2016-05-10 09:24:57 -07:00
parent 9e96ad851d
commit 78ff743759

View File

@ -12,7 +12,9 @@ func blockAVX2(dig *digest, p []byte)
func blockAMD64(dig *digest, p []byte)
func checkAVX2() bool
var hasAVX2 = checkAVX2()
// TODO(TocarIP): fix AVX2 crash (golang.org/issue/15617) and
// then re-enable this:
var hasAVX2 = false // checkAVX2()
func block(dig *digest, p []byte) {
if hasAVX2 && len(p) >= 256 {