]> git.proxmox.com Git - ceph.git/blob - ceph/src/common/crc32c_aarch64.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / common / crc32c_aarch64.h
1 #ifndef CEPH_COMMON_CRC32C_AARCH64_H
2 #define CEPH_COMMON_CRC32C_AARCH64_H
3
4 #include "arch/arm.h"
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 #ifdef HAVE_ARMV8_CRC
11
12 extern uint32_t ceph_crc32c_aarch64(uint32_t crc, unsigned char const *buffer, unsigned len);
13
14 #else
15
16 static inline uint32_t ceph_crc32c_aarch64(uint32_t crc, unsigned char const *buffer, unsigned len)
17 {
18 return 0;
19 }
20
21 #endif
22
23 #ifdef __cplusplus
24 }
25 #endif
26
27 #endif