1 /* Copyright (C) 2012 Connor Olding
3 * This program is licensed under the terms of the MIT License, and
4 * is distributed without any warranty. You should have received a
5 * copy of the license along with this program; see the file LICENSE.
8 enum { CRC_TABLE_SIZE
= 0x100 };
10 void crc_fill_table(ulong
*table
, int big
, ulong polynomial
);
11 void crc_be_cycle(ulong
*table
, ulong
*remainder
, char c
);
12 void crc_le_cycle(ulong
*table
, ulong
*remainder
, char c
);
13 ulong
crc_reflect(ulong input
);