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

Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Change-Id: I9b72f8a657f22d06e965b6b55697a5ff2b0cc61b
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/474161
Reviewed-by: Alexey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Richael Zhuang 2019-11-14 09:34:16 +08:00 committed by Tomasz Zawadzki
parent d6034240f1
commit ac417aa9d6

View File

@ -33,22 +33,16 @@
#include "spdk/crc32.h" #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 #ifdef SPDK_CONFIG_ISAL
#define SPDK_HAVE_ISAL #define SPDK_HAVE_ISAL
#include <isa-l/include/crc.h> #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 #define SPDK_HAVE_SSE4_2
#include <x86intrin.h> #include <x86intrin.h>
#endif #endif
#endif
#ifdef SPDK_HAVE_ISAL #ifdef SPDK_HAVE_ISAL