From: W. Felix Handte Date: Wed, 9 May 2018 19:28:47 +0000 (-0400) Subject: Add Necessary Dict Variables X-Git-Tag: v1.3.5~3^2~37^2~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7097a037492b9089fb43e88d50a6fc39ac5f3780;p=thirdparty%2Fzstd.git Add Necessary Dict Variables --- diff --git a/lib/compress/zstd_double_fast.c b/lib/compress/zstd_double_fast.c index d1b926de9..8c11d8ebe 100644 --- a/lib/compress/zstd_double_fast.c +++ b/lib/compress/zstd_double_fast.c @@ -69,6 +69,26 @@ size_t ZSTD_compressBlock_doubleFast_generic( U32 offset_1=rep[0], offset_2=rep[1]; U32 offsetSaved = 0; + const ZSTD_matchState_t* const dms = ms->dictMatchState; + const U32* const dictHashLong = dictMode == ZSTD_dictMatchState ? + dms->hashTable : NULL; + const U32* const dictHashSmall = dictMode == ZSTD_dictMatchState ? + dms->hashTable : NULL; + const U32 lowestDictIndex = dictMode == ZSTD_dictMatchState ? + dms->window.dictLimit : 0; + const BYTE* const dictBase = dictMode == ZSTD_dictMatchState ? + dms->window.base : NULL; + const BYTE* const dictLowest = dictMode == ZSTD_dictMatchState ? + dictBase + lowestDictIndex : NULL; + const BYTE* const dictEnd = dictMode == ZSTD_dictMatchState ? + dms->window.nextSrc : NULL; + const U32 dictIndexDelta = dictMode == ZSTD_dictMatchState ? + localLowestIndex - (U32)(dictEnd - dictBase) : + 0; + ptrdiff_t dictLowestLocalIndex = dictMode == ZSTD_dictMatchState ? + lowestDictIndex + dictIndexDelta : + localLowestIndex; + (void)dictMode; /* init */