From: W. Felix Handte Date: Tue, 29 May 2018 20:05:48 +0000 (-0400) Subject: Remove Pre-Existing Repcode Check X-Git-Tag: v1.3.5~3^2~22^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2e93736a7786dfb73cf32a2e75ae5679c375ba60;p=thirdparty%2Fzstd.git Remove Pre-Existing Repcode Check --- diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index e90f51a74..3a82ef48d 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -549,12 +549,6 @@ size_t ZSTD_compressBlock_lazy_generic( base + repIndex; /* check repCode */ - if ((offset_1>0) & (MEM_read32(ip+1) == MEM_read32(ip+1 - offset_1))) { - /* repcode : we take it */ - matchLength = ZSTD_count(ip+1+4, ip+1+4-offset_1, iend) + 4; - if (depth==0) goto _storeSequence; - } - if (dictMode == ZSTD_dictMatchState && ((U32)((prefixLowestIndex-1) - repIndex) >= 3 /* intentional underflow */) && (MEM_read32(repMatch) == MEM_read32(ip+1)) ) {