2018-07-17 18:05:36 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
#ifndef _LINUX_CRC32_POLY_H
|
|
|
|
|
#define _LINUX_CRC32_POLY_H
|
|
|
|
|
|
2025-06-19 11:34:12 -07:00
|
|
|
/* The polynomial used by crc32_le(), in integer form. See crc32_le(). */
|
2018-07-17 18:05:37 +02:00
|
|
|
#define CRC32_POLY_LE 0xedb88320
|
2025-06-19 11:34:12 -07:00
|
|
|
|
|
|
|
|
/* The polynomial used by crc32_be(), in integer form. See crc32_be(). */
|
2018-07-17 18:05:37 +02:00
|
|
|
#define CRC32_POLY_BE 0x04c11db7
|
2018-07-17 18:05:36 +02:00
|
|
|
|
2025-06-19 11:34:12 -07:00
|
|
|
/* The polynomial used by crc32c(), in integer form. See crc32c(). */
|
|
|
|
|
#define CRC32C_POLY_LE 0x82f63b78
|
2018-07-17 18:05:36 +02:00
|
|
|
|
|
|
|
|
#endif /* _LINUX_CRC32_POLY_H */
|