Lines Matching refs:dictMode
533 const U32 mls, const ZSTD_dictMode_e dictMode) in ZSTD_updateTree_internal() argument
539 idx, target, dictMode); in ZSTD_updateTree_internal()
542 … U32 const forward = ZSTD_insertBt1(ms, base+idx, iend, target, mls, dictMode == ZSTD_extDict); in ZSTD_updateTree_internal()
560 const BYTE* const ip, const BYTE* const iLimit, const ZSTD_dictMode_e dictMode, in ZSTD_insertBtAndGetAllMatches() argument
593 const ZSTD_matchState_t* dms = dictMode == ZSTD_dictMatchState ? ms->dictMatchState : NULL; in ZSTD_insertBtAndGetAllMatches()
595 dictMode == ZSTD_dictMatchState ? &dms->cParams : NULL; in ZSTD_insertBtAndGetAllMatches()
596 const BYTE* const dmsBase = dictMode == ZSTD_dictMatchState ? dms->window.base : NULL; in ZSTD_insertBtAndGetAllMatches()
597 const BYTE* const dmsEnd = dictMode == ZSTD_dictMatchState ? dms->window.nextSrc : NULL; in ZSTD_insertBtAndGetAllMatches()
598 U32 const dmsHighLimit = dictMode == ZSTD_dictMatchState ? (U32)(dmsEnd - dmsBase) : 0; in ZSTD_insertBtAndGetAllMatches()
599 U32 const dmsLowLimit = dictMode == ZSTD_dictMatchState ? dms->window.lowLimit : 0; in ZSTD_insertBtAndGetAllMatches()
600 … U32 const dmsIndexDelta = dictMode == ZSTD_dictMatchState ? windowLow - dmsHighLimit : 0; in ZSTD_insertBtAndGetAllMatches()
601 … U32 const dmsHashLog = dictMode == ZSTD_dictMatchState ? dmsCParams->hashLog : hashLog; in ZSTD_insertBtAndGetAllMatches()
602 …U32 const dmsBtLog = dictMode == ZSTD_dictMatchState ? dmsCParams->chainLog - 1 : btL… in ZSTD_insertBtAndGetAllMatches()
603 U32 const dmsBtMask = dictMode == ZSTD_dictMatchState ? (1U << dmsBtLog) - 1 : 0; in ZSTD_insertBtAndGetAllMatches()
604 …U32 const dmsBtLow = dictMode == ZSTD_dictMatchState && dmsBtMask < dmsHighLimit - dm… in ZSTD_insertBtAndGetAllMatches()
626 const BYTE* const repMatch = dictMode == ZSTD_dictMatchState ? in ZSTD_insertBtAndGetAllMatches()
630 if ( dictMode == ZSTD_extDict in ZSTD_insertBtAndGetAllMatches()
636 if (dictMode == ZSTD_dictMatchState in ZSTD_insertBtAndGetAllMatches()
661 …if ((dictMode == ZSTD_noDict) /*static*/ || (dictMode == ZSTD_dictMatchState) /*static*/ || (match… in ZSTD_insertBtAndGetAllMatches()
695 …if ((dictMode == ZSTD_noDict) || (dictMode == ZSTD_dictMatchState) || (matchIndex+matchLength >= d… in ZSTD_insertBtAndGetAllMatches()
720 … if (dictMode == ZSTD_dictMatchState) nbCompares = 0; /* break should also skip searching dms */ in ZSTD_insertBtAndGetAllMatches()
742 if (dictMode == ZSTD_dictMatchState && nbCompares) { in ZSTD_insertBtAndGetAllMatches()
804 const ZSTD_dictMode_e dictMode, in ZSTD_btGetAllMatches_internal() argument
808 DEBUGLOG(8, "ZSTD_BtGetAllMatches(dictMode=%d, mls=%u)", (int)dictMode, mls); in ZSTD_btGetAllMatches_internal()
811 ZSTD_updateTree_internal(ms, ip, iHighLimit, mls, dictMode); in ZSTD_btGetAllMatches_internal()
812 …return ZSTD_insertBtAndGetAllMatches(matches, ms, nextToUpdate3, ip, iHighLimit, dictMode, rep, ll… in ZSTD_btGetAllMatches_internal()
815 #define ZSTD_BT_GET_ALL_MATCHES_FN(dictMode, mls) ZSTD_btGetAllMatches_##dictMode##_##mls argument
817 #define GEN_ZSTD_BT_GET_ALL_MATCHES_(dictMode, mls) \ argument
818 static U32 ZSTD_BT_GET_ALL_MATCHES_FN(dictMode, mls)( \
830 rep, ll0, lengthToBeat, ZSTD_##dictMode, mls); \
833 #define GEN_ZSTD_BT_GET_ALL_MATCHES(dictMode) \ argument
834 GEN_ZSTD_BT_GET_ALL_MATCHES_(dictMode, 3) \
835 GEN_ZSTD_BT_GET_ALL_MATCHES_(dictMode, 4) \
836 GEN_ZSTD_BT_GET_ALL_MATCHES_(dictMode, 5) \
837 GEN_ZSTD_BT_GET_ALL_MATCHES_(dictMode, 6)
843 #define ZSTD_BT_GET_ALL_MATCHES_ARRAY(dictMode) \ in GEN_ZSTD_BT_GET_ALL_MATCHES() argument
845 ZSTD_BT_GET_ALL_MATCHES_FN(dictMode, 3), \ in GEN_ZSTD_BT_GET_ALL_MATCHES()
846 ZSTD_BT_GET_ALL_MATCHES_FN(dictMode, 4), \ in GEN_ZSTD_BT_GET_ALL_MATCHES()
847 ZSTD_BT_GET_ALL_MATCHES_FN(dictMode, 5), \ in GEN_ZSTD_BT_GET_ALL_MATCHES()
848 ZSTD_BT_GET_ALL_MATCHES_FN(dictMode, 6) \ in GEN_ZSTD_BT_GET_ALL_MATCHES()
852 ZSTD_selectBtGetAllMatches(ZSTD_matchState_t const* ms, ZSTD_dictMode_e const dictMode)
860 assert((U32)dictMode < 3);
862 return getAllMatchesFns[(int)dictMode][mls - 3];
1042 const ZSTD_dictMode_e dictMode) in ZSTD_compressBlock_opt_generic() argument
1054 ZSTD_getAllMatchesFn getAllMatches = ZSTD_selectBtGetAllMatches(ms, dictMode); in ZSTD_compressBlock_opt_generic()
1326 const void* src, size_t srcSize, const ZSTD_dictMode_e dictMode) in ZSTD_compressBlock_opt0() argument
1328 …return ZSTD_compressBlock_opt_generic(ms, seqStore, rep, src, srcSize, 0 /* optLevel */, dictMode); in ZSTD_compressBlock_opt0()
1333 const void* src, size_t srcSize, const ZSTD_dictMode_e dictMode) in ZSTD_compressBlock_opt2() argument
1335 …return ZSTD_compressBlock_opt_generic(ms, seqStore, rep, src, srcSize, 2 /* optLevel */, dictMode); in ZSTD_compressBlock_opt2()