The preprocessor code will be needed in another crc-related .c file in an upcoming patch. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Icc5e6f0d81f76093dfc973a9c1fe56271baf1ed8 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16687 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
23 lines
523 B
C
23 lines
523 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (C) 2023 Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef SPDK_CRC_INTERNAL_H
|
|
#define SPDK_CRC_INTERNAL_H
|
|
|
|
#include "spdk/config.h"
|
|
|
|
#ifdef SPDK_CONFIG_ISAL
|
|
#define SPDK_HAVE_ISAL
|
|
#include <isa-l/include/crc.h>
|
|
#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 /* SPDK_CRC_INTERNAL_H */
|