mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
Document these widely used functions. Update kernel-api.rst to point to the correct place, instead of to crc32-main.c which no longer contains kerneldoc comments. Simplify the documentation in crc32poly.h to just point to the corresponding functions, now that they are properly documented. Change the value of CRC32C_POLY_LE to lower case, for consistency. Acked-by: Ard Biesheuvel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Eric Biggers <[email protected]>
15 lines
453 B
C
15 lines
453 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_CRC32_POLY_H
|
|
#define _LINUX_CRC32_POLY_H
|
|
|
|
/* The polynomial used by crc32_le(), in integer form. See crc32_le(). */
|
|
#define CRC32_POLY_LE 0xedb88320
|
|
|
|
/* The polynomial used by crc32_be(), in integer form. See crc32_be(). */
|
|
#define CRC32_POLY_BE 0x04c11db7
|
|
|
|
/* The polynomial used by crc32c(), in integer form. See crc32c(). */
|
|
#define CRC32C_POLY_LE 0x82f63b78
|
|
|
|
#endif /* _LINUX_CRC32_POLY_H */
|