Skip to content

Commit a8c906d

Browse files
committed
crypto/keccak: gate amd64 keccak asm on both BMI1 and BMI2
1 parent ce8fea8 commit a8c906d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/keccak/keccakf_amd64.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"golang.org/x/sys/cpu"
99
)
1010

11-
func init() { useASM = cpu.X86.HasBMI2 }
11+
func init() { useASM = cpu.X86.HasBMI2 && cpu.X86.HasBMI1 }
1212

1313
//go:noescape
1414
func keccakF1600BMI2(a *[200]byte)

0 commit comments

Comments
 (0)