aboutsummaryrefslogtreecommitdiff
path: root/crc32.c
diff options
context:
space:
mode:
Diffstat (limited to 'crc32.c')
-rw-r--r--crc32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/crc32.c b/crc32.c
index 979a719..05733f4 100644
--- a/crc32.c
+++ b/crc32.c
@@ -278,7 +278,7 @@ local unsigned long crc32_little(crc, buf, len)
278} 278}
279 279
280/* ========================================================================= */ 280/* ========================================================================= */
281#define DOBIG4 c ^= *++buf4; \ 281#define DOBIG4 c ^= *buf4++; \
282 c = crc_table[4][c & 0xff] ^ crc_table[5][(c >> 8) & 0xff] ^ \ 282 c = crc_table[4][c & 0xff] ^ crc_table[5][(c >> 8) & 0xff] ^ \
283 crc_table[6][(c >> 16) & 0xff] ^ crc_table[7][c >> 24] 283 crc_table[6][(c >> 16) & 0xff] ^ crc_table[7][c >> 24]
284#define DOBIG32 DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4 284#define DOBIG32 DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4
@@ -300,7 +300,6 @@ local unsigned long crc32_big(crc, buf, len)
300 } 300 }
301 301
302 buf4 = (const z_crc_t FAR *)(const void FAR *)buf; 302 buf4 = (const z_crc_t FAR *)(const void FAR *)buf;
303 buf4--;
304 while (len >= 32) { 303 while (len >= 32) {
305 DOBIG32; 304 DOBIG32;
306 len -= 32; 305 len -= 32;
@@ -309,7 +308,6 @@ local unsigned long crc32_big(crc, buf, len)
309 DOBIG4; 308 DOBIG4;
310 len -= 4; 309 len -= 4;
311 } 310 }
312 buf4++;
313 buf = (const unsigned char FAR *)buf4; 311 buf = (const unsigned char FAR *)buf4;
314 312
315 if (len) do { 313 if (len) do {