Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / common / crc32c_intel_fast.h
1 #ifndef CEPH_COMMON_CRC32C_INTEL_FAST_H
2 #define CEPH_COMMON_CRC32C_INTEL_FAST_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* is the fast version compiled in */
9 extern int ceph_crc32c_intel_fast_exists(void);
10
11 #ifdef __x86_64__
12
13 extern uint32_t ceph_crc32c_intel_fast(uint32_t crc, unsigned char const *buffer, unsigned len);
14
15 #else
16
17 static inline uint32_t ceph_crc32c_intel_fast(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