Commit ac417aa9 authored by Richael Zhuang's avatar Richael Zhuang Committed by Tomasz Zawadzki
Browse files

util: use the crc32c in isa-l if isa-l is enabled on aarch64

parent d6034240
Loading
Loading
Loading
Loading
+4 −10
Original line number Diff line number Diff line
@@ -33,22 +33,16 @@

#include "spdk/crc32.h"

#if defined(__aarch64__) || defined(__AARCH64__)
#ifdef __ARM_FEATURE_CRC32
#define SPDK_HAVE_ARM_CRC
#include <arm_acle.h>
#endif
#endif

#if defined(__x86_64__) && defined(__SSE4_2__)
#ifdef SPDK_CONFIG_ISAL
#define SPDK_HAVE_ISAL
#include <isa-l/include/crc.h>
#else
#elif defined(__aarch64__) && defined(__ARM_FEATURE_CRC32)
#define SPDK_HAVE_ARM_CRC
#include <arm_acle.h>
#elif defined(__x86_64__) && defined(__SSE4_2__)
#define SPDK_HAVE_SSE4_2
#include <x86intrin.h>
#endif
#endif

#ifdef SPDK_HAVE_ISAL