diff --git a/pkg/container/hashtable/hash_amd64.go b/pkg/container/hashtable/hash_amd64.go index d85c8830693c8..afd4054c710d2 100644 --- a/pkg/container/hashtable/hash_amd64.go +++ b/pkg/container/hashtable/hash_amd64.go @@ -28,14 +28,14 @@ func aesInt256BatchGenHashStates(data *[4]uint64, states *[3]uint64, length int) func aesInt320BatchGenHashStates(data *[5]uint64, states *[3]uint64, length int) func init() { - if cpu.X86.HasSSE42 { + if cpu.X86.HasAVX { Int64BatchHash = crc32Int64BatchHash - } - if cpu.X86.HasAES { - BytesBatchGenHashStates = aesBytesBatchGenHashStates - Int192BatchGenHashStates = aesInt192BatchGenHashStates - Int256BatchGenHashStates = aesInt256BatchGenHashStates - Int320BatchGenHashStates = aesInt320BatchGenHashStates + if cpu.X86.HasAES { + BytesBatchGenHashStates = aesBytesBatchGenHashStates + Int192BatchGenHashStates = aesInt192BatchGenHashStates + Int256BatchGenHashStates = aesInt256BatchGenHashStates + Int320BatchGenHashStates = aesInt320BatchGenHashStates + } } }