mirror of
https://github.com/ericonr/util-linux.git
synced 2024-04-21 09:12:35 -05:00
This is public domain implementation, based on static crc32_table[]. This implementation is used on may places (libparted, FreeBSD kernel, PostgreSQL, ...). The Linux kernel uses on-the-fly generated and allocated tables. That's useless in shared libraries. Signed-off-by: Karel Zak <kzak@redhat.com>
10 lines
151 B
C
10 lines
151 B
C
#ifndef UL_NG_CRC32_H
|
|
#define UL_NG_CRC32_H
|
|
|
|
#include <stdint.h>
|
|
|
|
extern uint32_t crc32(uint32_t seed, const unsigned char *buf, size_t len);
|
|
|
|
#endif
|
|
|