X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=bluesky%2Fcrc32c.c;h=40ce983eebec17c39f25070d23818c7bb27782e8;hb=HEAD;hp=b29f18d42f3aa8599a605b2d1edce62489602720;hpb=3bf92d26e3256d76766e77106502a68c9e30c14b;p=bluesky.git diff --git a/bluesky/crc32c.c b/bluesky/crc32c.c index b29f18d..40ce983 100644 --- a/bluesky/crc32c.c +++ b/bluesky/crc32c.c @@ -17,6 +17,10 @@ #include #include "bluesky-private.h" +/* Generator polynomial is 0x1edc6f41; input and output are reflected. The + * recommended starting value for the accumulator is ~0, and the bits of the + * CRC are inverted at the end as well. */ + static const uint32_t crc32c_table[256] = { 0x00000000L, 0xF26B8303L, 0xE13B70F7L, 0x1350F3F4L, 0xC79A971FL, 0x35F1141CL, 0x26A1E7E8L, 0xD4CA64EBL,