mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-06 06:58:39 +00:00
crypto/keccak: gate amd64 keccak asm on both BMI1 and BMI2
This commit is contained in:
parent
ce8fea8f93
commit
a8c906d6bd
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"golang.org/x/sys/cpu"
|
"golang.org/x/sys/cpu"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() { useASM = cpu.X86.HasBMI2 }
|
func init() { useASM = cpu.X86.HasBMI2 && cpu.X86.HasBMI1 }
|
||||||
|
|
||||||
//go:noescape
|
//go:noescape
|
||||||
func keccakF1600BMI2(a *[200]byte)
|
func keccakF1600BMI2(a *[200]byte)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue