Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / common / crc32c_aarch64.h
1 #ifndef CEPH_COMMON_CRC32C_AARCH64_H
2 #define CEPH_COMMON_CRC32C_AARCH64_H
3
4 #include "acconfig.h"
5 #include "arch/arm.h"
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 #ifdef HAVE_ARMV8_CRC
12
13 extern uint32_t ceph_crc32c_aarch64(uint32_t crc, unsigned char const *buffer, unsigned len);
14
15 #else
16
17 static inline uint32_t ceph_crc32c_aarch64(uint32_t crc, unsigned char const *buffer, unsigned len)
18 {
19         return 0;
20 }
21
22 #endif
23
24 #ifdef __cplusplus
25 }
26 #endif
27
28 #endif