diff --git a/lib/util/crc32c.c b/lib/util/crc32c.c index babb3c730..9c2196085 100644 --- a/lib/util/crc32c.c +++ b/lib/util/crc32c.c @@ -33,22 +33,16 @@ #include "spdk/crc32.h" -#if defined(__aarch64__) || defined(__AARCH64__) -#ifdef __ARM_FEATURE_CRC32 -#define SPDK_HAVE_ARM_CRC -#include -#endif -#endif - -#if defined(__x86_64__) && defined(__SSE4_2__) #ifdef SPDK_CONFIG_ISAL #define SPDK_HAVE_ISAL #include -#else +#elif defined(__aarch64__) && defined(__ARM_FEATURE_CRC32) +#define SPDK_HAVE_ARM_CRC +#include +#elif defined(__x86_64__) && defined(__SSE4_2__) #define SPDK_HAVE_SSE4_2 #include #endif -#endif #ifdef SPDK_HAVE_ISAL