Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / include / linux / crc64.h
blobe044c60d1e611224e19a3bcf9369cd26dcaf3a92
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * See lib/crc64.c for the related specification and polynomial arithmetic.
4 */
5 #ifndef _LINUX_CRC64_H
6 #define _LINUX_CRC64_H
8 #include <linux/types.h>
10 #define CRC64_ROCKSOFT_STRING "crc64-rocksoft"
12 u64 __pure crc64_be(u64 crc, const void *p, size_t len);
13 u64 __pure crc64_rocksoft_generic(u64 crc, const void *p, size_t len);
15 u64 crc64_rocksoft(const unsigned char *buffer, size_t len);
16 u64 crc64_rocksoft_update(u64 crc, const unsigned char *buffer, size_t len);
18 #endif /* _LINUX_CRC64_H */