diff options
author | Simon Schampijer <simon@laptop.org> | 2010-11-26 17:47:41 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@laptop.org> | 2010-11-26 17:47:41 (GMT) |
commit | a9b1881361440fc39a6d9c33c6e7eafe75fbafa1 (patch) | |
tree | 7cc58d0bad82417caf8222323060246b409653f4 /bin | |
parent | f3400ae540dbf061bbcb00aef0868f138b1211bd (diff) |
crc is not used anymore, remove the code
Diffstat (limited to 'bin')
-rw-r--r-- | bin/crc32.c | 19 | ||||
-rw-r--r-- | bin/crc32.h | 14 |
2 files changed, 0 insertions, 33 deletions
diff --git a/bin/crc32.c b/bin/crc32.c deleted file mode 100644 index ac3eab8..0000000 --- a/bin/crc32.c +++ /dev/null @@ -1,19 +0,0 @@ -/* Ripped from the linux kernel crc32 code - * - * This source code is licensed under the GNU General Public License, - * Version 2. - */ - -#include "crc32.h" - -u32 crc32_le(u32 crc, unsigned char const *p, size_t len) -{ - int i; - while (len--) { - crc ^= *p++; - for (i = 0; i < 8; i++) - crc = (crc >> 1) ^ ((crc & 1) ? CRCPOLY_LE : 0); - } - return crc; -} - diff --git a/bin/crc32.h b/bin/crc32.h deleted file mode 100644 index d2a65fe..0000000 --- a/bin/crc32.h +++ /dev/null @@ -1,14 +0,0 @@ -/* Ripped from the linux kernel crc32 code - * - * This source code is licensed under the GNU General Public License, - * Version 2. - */ -#include <stdint.h> -#include <stddef.h> - -typedef uint32_t u32; - -extern u32 crc32_le(u32 crc, unsigned char const *p, size_t len); -#define crc32(seed, data, length) crc32_le(seed, (unsigned char const *)data, length) -#define CRCPOLY_LE 0xedb88320 - |