Further micro-optimise match_len.

This commit is contained in:
Con Kolivas 2012-03-11 09:50:42 +11:00
parent 261f2ff1e4
commit f4165ec263

6
rzip.c
View file

@ -462,14 +462,14 @@ static inline i64 match_len(rzip_control *control, struct rzip_state *st, i64 p0
i64 *rev)
{
uchar *(*csb)(rzip_control *, i64);
i64 p, len = 0;
i64 p, len;
if (op >= p0)
return len;
return 0;
p = p0;
csb = control->get_sb;
while ((*csb(control, p) == *csb(control, op)) && (p < end)) {
while (p < end && (*csb(control, p) == *csb(control, op))) {
p++;
op++;
}