Fix preprocessor guard for avx512 longestCommonPrefix

This commit is contained in:
2024-08-02 20:46:32 -07:00
parent d1dc1247e1
commit abce4591d0

View File

@@ -1673,7 +1673,7 @@ int firstNeqStride(const uint8_t *ap, const uint8_t *bp) {
#endif
}
#if defined(__x86_64__) && !defined(__SANITIZE_THREAD__)
#if defined(HAS_AVX) && !defined(__SANITIZE_THREAD__)
__attribute__((target("avx512bw"))) int
longestCommonPrefix(const uint8_t *ap, const uint8_t *bp, int cl) {
int i = 0;