Commit 78ff7437 authored by Brad Fitzpatrick's avatar Brad Fitzpatrick

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: default avatarDmitry Vyukov <dvyukov@google.com>
Reviewed-by: default avatarMinux Ma <minux@golang.org>
parent 9e96ad85
...@@ -12,7 +12,9 @@ func blockAVX2(dig *digest, p []byte) ...@@ -12,7 +12,9 @@ func blockAVX2(dig *digest, p []byte)
func blockAMD64(dig *digest, p []byte) func blockAMD64(dig *digest, p []byte)
func checkAVX2() bool 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) { func block(dig *digest, p []byte) {
if hasAVX2 && len(p) >= 256 { if hasAVX2 && len(p) >= 256 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment