[Zlib-devel] [PATCH 05/13] Add preprocessor define to tune Adler32 loop unrolling.
Mike Frysinger
vapier at gentoo.org
Thu Nov 28 01:53:06 EST 2013
On Monday 25 November 2013 17:21:41 Jim Kukunas wrote:
> + DO8(buf,0); /* 8 sums unrolled */
put a space before that 0
> +#ifndef ADLER32_UNROLL_LESS
> while (len >= 16) {
> len -= 16;
> DO16(buf);
> buf += 16;
> +#else
> + while (len >= 8) {
> + len -= 8;
> + DO8(buf, 0);
> + buf += 8;
> +#endif
can't this constant # be pulled out somehow so the whole body doesn't get
duplicated ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20131128/c7c531a6/attachment-0001.sig>
More information about the Zlib-devel
mailing list