flate

deflate implementation
git clone git://git.suckless.org/flate
Log | Files | Refs | README

commit 7afb5aa5e1248c2fe33e1faf07c912e1a8d69b0e
parent 91bbf2dbb704b4556c627c7f5a6d4651a1c7a613
Author: nsz <nszabolcs@gmail.com>
Date:   Tue, 11 Aug 2009 09:54:39 +0200

deflate -= loop unroll
Diffstat:
deflate.c | 7-------
1 file changed, 0 insertions(+), 7 deletions(-)

diff --git a/deflate.c b/deflate.c @@ -515,13 +515,6 @@ static Match getmatch(State *s, int mpos) { /* at least m.len+1 long */ if (q[m.len] != p[m.len] || q[m.len-1] != p[m.len-1] || q[0] != p[0]) continue; - /* loop unroll: MaxMatch % 10 == 8, overflow if avail < MaxMatch, only little gain - do; while (*++q == *++p && *++q == *++p - && *++q == *++p && *++q == *++p - && *++q == *++p && *++q == *++p - && *++q == *++p && ++p != end && *++q == *p - && *++q == *++p && *++q == *++p); - */ while (++p != end && *++q == *p); len = MaxMatch - (end - p); p -= len;