comparison crc32c.c @ 0:422835bc1aca

*: checkin
author Paper <paper@tflc.us>
date Mon, 09 Feb 2026 01:15:00 -0500
parents
children 6483683ac857
comparison
equal deleted inserted replaced
-1:000000000000 0:422835bc1aca
1 #include "crc32i.h"
2
3 uint32_t crc32c_r(uint32_t crc, const unsigned char *message, size_t sz)
4 {
5 size_t i;
6
7 for (i = 0; i < sz; i++)
8 crc = (crc >> 8) ^ crc32_tab[(crc ^ message[i]) & 0xFF];
9
10 return crc;
11 }