Skip to content

Commit

Permalink
Fix accidental AVX512 usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Aug 21, 2023
1 parent 8afa1d2 commit 5752d6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace hat::detail {
if (size <= 65 && ext.avx512) {
return find_pattern<scan_mode::AVX512, alignment>(begin, end, signature);
} else if (size <= 33 && ext.avx2) {
return find_pattern<scan_mode::AVX512, alignment>(begin, end, signature);
return find_pattern<scan_mode::AVX2, alignment>(begin, end, signature);
}
}
if (size <= 17 && ext.sse41) {
Expand Down

0 comments on commit 5752d6b

Please sign in to comment.