crypto/keccak: gate amd64 keccak asm on both BMI1 and BMI2

This commit is contained in:
Sahil Sojitra 2026-04-07 14:45:39 +05:30
parent ce8fea8f93
commit a8c906d6bd

View file

@ -8,7 +8,7 @@ import (
"golang.org/x/sys/cpu"
)
func init() { useASM = cpu.X86.HasBMI2 }
func init() { useASM = cpu.X86.HasBMI2 && cpu.X86.HasBMI1 }
//go:noescape
func keccakF1600BMI2(a *[200]byte)