From 4cb2009821cfcd0161460fddcbc08ee5acc522e9 Mon Sep 17 00:00:00 2001 From: inikep Date: Wed, 3 Feb 2016 13:25:34 +0100 Subject: [PATCH] 40901629 --- lib/zstd_opt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/zstd_opt.c b/lib/zstd_opt.c index 4eb516578..6963a80ff 100644 --- a/lib/zstd_opt.c +++ b/lib/zstd_opt.c @@ -130,10 +130,8 @@ size_t ZSTD_insertBtAndGetAllMatches ( if (matchLength > matchEndIdx - matchIndex) matchEndIdx = matchIndex + (U32)matchLength; #if 0 - if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit(current-matchIndex+1) - ZSTD_highbit((U32)offsetPtr[0]+1)) ) - bestLength = matchLength, *offsetPtr = current - matchIndex; -#else if (mnum == 0 || (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit(current-matchIndex+1) - ZSTD_highbit((U32)matches[mnum-1].off+1)) ) +#endif { if (matchLength >= MINMATCH) { @@ -145,7 +143,6 @@ size_t ZSTD_insertBtAndGetAllMatches ( } if (matchLength > LZ5_OPT_NUM) break; } -#endif if (ip+matchLength == iend) /* equal : no way to know if inf or sup */ break; /* drop, to guarantee consistency (miss a little bit of compression) */ } -- 2.47.2