From abce4591d031bfeaefa616283f2003d4ac45fe5c Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Fri, 2 Aug 2024 20:46:32 -0700 Subject: [PATCH] Fix preprocessor guard for avx512 longestCommonPrefix --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 6c260a2..d15a572 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -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;