Nit: Unnest Blocks that Don't Declare Anything
This commit is contained in:
parent
2cdfad538c
commit
47fd762ecc
@ -184,26 +184,22 @@ _cleanup:
|
|||||||
return (size_t)(iend - anchor);
|
return (size_t)(iend - anchor);
|
||||||
|
|
||||||
_search_next_long:
|
_search_next_long:
|
||||||
{
|
|
||||||
|
|
||||||
/* check prefix long +1 match */
|
/* check prefix long +1 match */
|
||||||
if (idxl1 > prefixLowestIndex) {
|
if (idxl1 > prefixLowestIndex) {
|
||||||
if (MEM_read64(matchl1) == MEM_read64(ip1)) {
|
if (MEM_read64(matchl1) == MEM_read64(ip1)) {
|
||||||
ip = ip1;
|
ip = ip1;
|
||||||
mLength = ZSTD_count(ip+8, matchl1+8, iend) + 8;
|
mLength = ZSTD_count(ip+8, matchl1+8, iend) + 8;
|
||||||
offset = (U32)(ip-matchl1);
|
offset = (U32)(ip-matchl1);
|
||||||
while (((ip>anchor) & (matchl1>prefixLowest)) && (ip[-1] == matchl1[-1])) { ip--; matchl1--; mLength++; } /* catch up */
|
while (((ip>anchor) & (matchl1>prefixLowest)) && (ip[-1] == matchl1[-1])) { ip--; matchl1--; mLength++; } /* catch up */
|
||||||
goto _match_found;
|
goto _match_found;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if no long +1 match, explore the short match we found */
|
/* if no long +1 match, explore the short match we found */
|
||||||
{
|
mLength = ZSTD_count(ip+4, matchs0+4, iend) + 4;
|
||||||
mLength = ZSTD_count(ip+4, matchs0+4, iend) + 4;
|
offset = (U32)(ip - matchs0);
|
||||||
offset = (U32)(ip - matchs0);
|
while (((ip>anchor) & (matchs0>prefixLowest)) && (ip[-1] == matchs0[-1])) { ip--; matchs0--; mLength++; } /* catch up */
|
||||||
while (((ip>anchor) & (matchs0>prefixLowest)) && (ip[-1] == matchs0[-1])) { ip--; matchs0--; mLength++; } /* catch up */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* fall-through */
|
/* fall-through */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user