Home
last modified time | relevance | path

Searched refs:extDict (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_ldm.c221 /* If backwards match is entirely in the extDict or prefix, immediately return */ in ZSTD_ldm_countBackwardsMatch_2segments()
326 int const extDict = ZSTD_window_hasExtDict(ldmState->window); in ZSTD_ldm_generateSequences_internal() local
330 /* Prefix and extDict parameters */ in ZSTD_ldm_generateSequences_internal()
332 U32 const lowestIndex = extDict ? ldmState->window.lowLimit : dictLimit; in ZSTD_ldm_generateSequences_internal()
334 BYTE const* const dictBase = extDict ? ldmState->window.dictBase : NULL; in ZSTD_ldm_generateSequences_internal()
335 BYTE const* const dictStart = extDict ? dictBase + lowestIndex : NULL; in ZSTD_ldm_generateSequences_internal()
336 BYTE const* const dictEnd = extDict ? dictBase + dictLimit : NULL; in ZSTD_ldm_generateSequences_internal()
409 if (extDict) { in ZSTD_ldm_generateSequences_internal()
424 } else { /* !extDict */ in ZSTD_ldm_generateSequences_internal()
H A Dzstd_fast.c578 /* switch to "regular" variant if extDict is invalidated due to maxDistance */ in ZSTD_compressBlock_fast_extDict_generic()
653 ZSTD_GEN_FAST_FN(extDict, 4, 0)
654 ZSTD_GEN_FAST_FN(extDict, 5, 0)
655 ZSTD_GEN_FAST_FN(extDict, 6, 0)
656 ZSTD_GEN_FAST_FN(extDict, 7, 0)
H A Dzstd_double_fast.c559 /* if extDict is invalidated due to maxDistance, switch to "regular" variant */ in ZSTD_compressBlock_doubleFast_extDict_generic()
674 ZSTD_GEN_DFAST_FN(extDict, 4)
675 ZSTD_GEN_DFAST_FN(extDict, 5)
676 ZSTD_GEN_DFAST_FN(extDict, 6)
677 ZSTD_GEN_DFAST_FN(extDict, 7)
H A Dzstd_opt.c381 Assumption : always within prefix (i.e. not within extDict) */
415 U32 const mls, const int extDict) in ZSTD_insertBt1()
484 if (!extDict || (matchIndex+matchLength >= dictLimit)) { in ZSTD_insertBt1()
485 assert(matchIndex+matchLength >= dictLimit); /* might be wrong if actually extDict */ in ZSTD_insertBt1()
696 assert(matchIndex+matchLength >= dictLimit); /* ensure the condition is correct when !extDict */ in ZSTD_insertBtAndGetAllMatches()
840 GEN_ZSTD_BT_GET_ALL_MATCHES(extDict)
856 ZSTD_BT_GET_ALL_MATCHES_ARRAY(extDict), in ZSTD_selectBtGetAllMatches()
1444 /* note : no btultra2 variant for extDict nor dictMatchState,
411 ZSTD_insertBt1( const ZSTD_matchState_t* ms, const BYTE* const ip, const BYTE* const iend, U32 const target, U32 const mls, const int extDict) ZSTD_insertBt1() argument
H A Dzstd_lazy.c106 || (curr < dictLimit) /* both in extDict */) { in ZSTD_insertDUBT1()
110 assert( (matchIndex+matchLength >= dictLimit) /* might be wrong if extDict is incorrectly set to 0 */ in ZSTD_insertDUBT1()
616 Assumption : always within prefix (i.e. not within extDict) */
1315 * able to avoid force inlining it, and we can join the extDict loop with
1374 X(__VA_ARGS__, extDict) \
1461 ZSTD_SWITCH_SEARCH_METHOD(extDict) in ZSTD_searchMax()
/kernel/linux/linux-5.10/lib/zstd/
H A Dcompress.c56 const BYTE *dictBase; /* extDict indexes relative to this position */
57 U32 dictLimit; /* below that point, need extDict */
336 * do not use with extDict variant ! */
1561 static U32 ZSTD_insertBt1(ZSTD_CCtx *zc, const BYTE *const ip, const U32 mls, const BYTE *const iend, U32 nbCompares, U32 extDict) in ZSTD_insertBt1() argument
1592 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBt1()
1644 U32 extDict) in ZSTD_insertBtAndFindBestMatch()
1675 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBtAndFindBestMatch()
1794 Assumption : always within prefix (i.e. not within extDict) */
1821 const U32 extDict) in ZSTD_HcFindBestMatch_generic()
1843 if ((!extDict) || matchInde in ZSTD_HcFindBestMatch_generic()
1643 ZSTD_insertBtAndFindBestMatch(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iend, size_t *offsetPtr, U32 nbCompares, const U32 mls, U32 extDict) ZSTD_insertBtAndFindBestMatch() argument
1819 ZSTD_HcFindBestMatch_generic(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, size_t *offsetPtr, const U32 maxNbAttempts, const U32 mls, const U32 extDict) ZSTD_HcFindBestMatch_generic() argument
2322 ZSTD_selectBlockCompressor(ZSTD_strategy strat, int extDict) ZSTD_selectBlockCompressor() argument
[all...]
H A Dzstd_opt.h213 Assumption : always within prefix (i.e. not within extDict) */
235 static U32 ZSTD_insertBtAndGetAllMatches(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, U32 nbCompares, const U32 mls, U32 extDict, in ZSTD_insertBtAndGetAllMatches() argument
268 if ((!extDict) || matchIndex3 >= dictLimit) { in ZSTD_insertBtAndGetAllMatches()
300 if ((!extDict) || (matchIndex + matchLength >= dictLimit)) { in ZSTD_insertBtAndGetAllMatches()

Completed in 19 milliseconds