mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-21 06:03:54 +00:00
Further micro-optimise match_len.
This commit is contained in:
parent
261f2ff1e4
commit
f4165ec263
1 changed files with 3 additions and 3 deletions
6
rzip.c
6
rzip.c
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue