mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 15:36:48 +00: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 <ardb@kernel.org> Link: https://lore.kernel.org/r/20250619183414.100082-2-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@kernel.org>
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 */
|