The guard
#if !(__x86_64__ && defined(HAVE_NASM_X64_AVX2)) || defined(__aarch64__)
binds the negation only to the x86 half, so aarch64 (where ISA-L
is supported) always hit the warning branch.
Signed-off-by: Sun Yuechi <sunyuechi@iscas.ac.cn>
: Compressor(COMP_ALG_ZLIB, "zlib"), isal_enabled(isal), cct(cct)
{
-#if !(__x86_64__ && defined(HAVE_NASM_X64_AVX2)) || defined(__aarch64__)
+#if (__x86_64__ && defined(HAVE_NASM_X64_AVX2))
+#elif defined(__aarch64__)
+#else
if (isal_enabled) {
derr << "WARN: ISA-L enabled (compressor_zlib_isal=true) but not supported"
<< dendl;