mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
vendor x/sys/cpu and update x/crypto/blake2b (#5870)
This change updates the vendor'd x/crypto/blake2b package and adds x/sys/cpu. This change fixes an issue for Go1.11 affecting x/crypto/blake2b since G1.11 removes the runtime-internal functions `suports_avx()` and `supports_avx2()`.
This commit is contained in:
committed by
Nitish Tiwari
parent
5f9041571f
commit
ca8520fb31
+4
-5
@@ -6,12 +6,11 @@
|
||||
|
||||
package blake2b
|
||||
|
||||
func init() {
|
||||
useSSE4 = supportsSSE4()
|
||||
}
|
||||
import "golang.org/x/sys/cpu"
|
||||
|
||||
//go:noescape
|
||||
func supportsSSE4() bool
|
||||
func init() {
|
||||
useSSE4 = cpu.X86.HasSSE41
|
||||
}
|
||||
|
||||
//go:noescape
|
||||
func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte)
|
||||
|
||||
Reference in New Issue
Block a user