xref: /spdk/lib/util/crc_internal.h (revision 500ce16976824f93048fc82f9ad0eec8c926798e)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (C) 2023 Intel Corporation.
3  *   All rights reserved.
4  */
5 
6 #ifndef SPDK_CRC_INTERNAL_H
7 #define SPDK_CRC_INTERNAL_H
8 
9 #include "spdk/config.h"
10 
11 #ifdef SPDK_CONFIG_ISAL
12 #define SPDK_HAVE_ISAL
13 #include <isa-l/include/crc.h>
14 #elif defined(__aarch64__) && defined(__ARM_FEATURE_CRC32)
15 #define SPDK_HAVE_ARM_CRC
16 #include <arm_acle.h>
17 #elif defined(__x86_64__) && defined(__SSE4_2__)
18 #define SPDK_HAVE_SSE4_2
19 #include <x86intrin.h>
20 #endif
21 
22 #endif /* SPDK_CRC_INTERNAL_H */
23