]> err.no Git - util-linux/commit
lib: add a generic crc32()
authorKarel Zak <kzak@redhat.com>
Wed, 16 Sep 2009 14:17:41 +0000 (16:17 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 16 Sep 2009 14:17:41 +0000 (16:17 +0200)
commit7176f22db5354274c5c6b3b46b21dd96f7c3146d
tree4c02a7c7a41c3137d278f2c9380f683ee70550c4
parentb507ce0382876bb693498cf86208a53917b3cb29
lib: add a generic crc32()

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>
include/Makefile.am
include/crc32.h [new file with mode: 0644]
lib/crc32.c [new file with mode: 0644]