From: hansr Date: Tue, 21 Oct 2014 12:53:37 +0000 (+0200) Subject: Let the CRC32_UNROLL_LESS define work on big endian systems as well. X-Git-Tag: 1.9.9-b1~901 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=98ad902f83e0357b3cc89aa2b972e0eefc6efb1e;p=thirdparty%2Fzlib-ng.git Let the CRC32_UNROLL_LESS define work on big endian systems as well. --- diff --git a/crc32.c b/crc32.c index dc3a95217..13107fa9a 100644 --- a/crc32.c +++ b/crc32.c @@ -304,10 +304,14 @@ local unsigned long crc32_big(unsigned long crc, const unsigned char *buf, unsig buf4 = (const z_crc_t *)(const void *)buf; buf4--; + +#ifndef CRC32_UNROLL_LESS while (len >= 32) { DOBIG32; len -= 32; } +#endif + while (len >= 4) { DOBIG4; len -= 4;