]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #ifndef CEPH_COMMON_CRC32C_AARCH64_H |
2 | #define CEPH_COMMON_CRC32C_AARCH64_H | |
3 | ||
31f18b77 | 4 | #include "acconfig.h" |
7c673cae FG |
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 |