]> git.proxmox.com Git - ceph.git/blame - ceph/src/common/crc32c_aarch64.h
import ceph quincy 17.2.6
[ceph.git] / ceph / src / common / crc32c_aarch64.h
CommitLineData
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
8extern "C" {
9#endif
10
11#ifdef HAVE_ARMV8_CRC
12
13extern uint32_t ceph_crc32c_aarch64(uint32_t crc, unsigned char const *buffer, unsigned len);
14
15#else
16
17static 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