diff options
Diffstat (limited to 'vendor/golang.org/x/crypto/blake2s/blake2s_amd64.go')
-rw-r--r-- | vendor/golang.org/x/crypto/blake2s/blake2s_amd64.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/vendor/golang.org/x/crypto/blake2s/blake2s_amd64.go b/vendor/golang.org/x/crypto/blake2s/blake2s_amd64.go index 43a76253d..a925e6b20 100644 --- a/vendor/golang.org/x/crypto/blake2s/blake2s_amd64.go +++ b/vendor/golang.org/x/crypto/blake2s/blake2s_amd64.go @@ -7,10 +7,9 @@ package blake2s var ( - useSSE4 = supportSSE4() - useSSSE3 = supportSSSE3() - useSSE2 = true // Always available on amd64 - useGeneric = false + useSSE4 = supportSSE4() + useSSSE3 = supportSSSE3() + useSSE2 = true // Always available on amd64 ) //go:noescape @@ -33,7 +32,9 @@ func hashBlocks(h *[8]uint32, c *[2]uint32, flag uint32, blocks []byte) { hashBlocksSSE4(h, c, flag, blocks) } else if useSSSE3 { hashBlocksSSSE3(h, c, flag, blocks) - } else { + } else if useSSE2 { hashBlocksSSE2(h, c, flag, blocks) + } else { + hashBlocksGeneric(h, c, flag, blocks) } } |