Lines Matching refs:dictMode
67 const ZSTD_dictMode_e dictMode) in ZSTD_insertDUBT1() argument
104 if ( (dictMode != ZSTD_extDict) in ZSTD_insertDUBT1()
107 const BYTE* const mBase = ( (dictMode != ZSTD_extDict) in ZSTD_insertDUBT1()
160 const ZSTD_dictMode_e dictMode) in ZSTD_DUBT_findBetterDictMatch() argument
185 (void)dictMode; in ZSTD_DUBT_findBetterDictMatch()
186 assert(dictMode == ZSTD_dictMatchState); in ZSTD_DUBT_findBetterDictMatch()
235 const ZSTD_dictMode_e dictMode) in ZSTD_DUBT_findBestMatch() argument
261 assert(dictMode != ZSTD_dedicatedDictSearch); in ZSTD_DUBT_findBestMatch()
292 nbCandidates, unsortLimit, dictMode); in ZSTD_DUBT_findBestMatch()
317 if ((dictMode != ZSTD_extDict) || (matchIndex+matchLength >= dictLimit)) { in ZSTD_DUBT_findBestMatch()
333 if (dictMode == ZSTD_dictMatchState) { in ZSTD_DUBT_findBestMatch()
361 if (dictMode == ZSTD_dictMatchState && nbCompares) { in ZSTD_DUBT_findBestMatch()
365 mls, dictMode); in ZSTD_DUBT_findBestMatch()
386 const ZSTD_dictMode_e dictMode) in ZSTD_BtFindBestMatch() argument
391 return ZSTD_DUBT_findBestMatch(ms, ip, iLimit, offsetPtr, mls, dictMode); in ZSTD_BtFindBestMatch()
652 const U32 mls, const ZSTD_dictMode_e dictMode) in ZSTD_HcFindBestMatch() argument
674 const U32 ddsHashLog = dictMode == ZSTD_dedicatedDictSearch in ZSTD_HcFindBestMatch()
676 const size_t ddsIdx = dictMode == ZSTD_dedicatedDictSearch in ZSTD_HcFindBestMatch()
681 if (dictMode == ZSTD_dedicatedDictSearch) { in ZSTD_HcFindBestMatch()
691 if ((dictMode != ZSTD_extDict) || matchIndex >= dictLimit) { in ZSTD_HcFindBestMatch()
715 if (dictMode == ZSTD_dedicatedDictSearch) { in ZSTD_HcFindBestMatch()
718 } else if (dictMode == ZSTD_dictMatchState) { in ZSTD_HcFindBestMatch()
1124 const U32 mls, const ZSTD_dictMode_e dictMode, in ZSTD_RowFindBestMatch() argument
1159 if (dictMode == ZSTD_dedicatedDictSearch) { in ZSTD_RowFindBestMatch()
1168 if (dictMode == ZSTD_dictMatchState) { in ZSTD_RowFindBestMatch()
1201 if ((dictMode != ZSTD_extDict) || matchIndex >= dictLimit) { in ZSTD_RowFindBestMatch()
1224 if ((dictMode != ZSTD_extDict) || matchIndex >= dictLimit) { in ZSTD_RowFindBestMatch()
1246 if (dictMode == ZSTD_dedicatedDictSearch) { in ZSTD_RowFindBestMatch()
1249 } else if (dictMode == ZSTD_dictMatchState) { in ZSTD_RowFindBestMatch()
1320 #define ZSTD_BT_SEARCH_FN(dictMode, mls) ZSTD_BtFindBestMatch_##dictMode##_##mls argument
1321 #define ZSTD_HC_SEARCH_FN(dictMode, mls) ZSTD_HcFindBestMatch_##dictMode##_##mls argument
1322 #define ZSTD_ROW_SEARCH_FN(dictMode, mls, rowLog) ZSTD_RowFindBestMatch_##dictMode##_##mls##_##rowL… argument
1326 #define GEN_ZSTD_BT_SEARCH_FN(dictMode, mls) \ argument
1327 ZSTD_SEARCH_FN_ATTRS size_t ZSTD_BT_SEARCH_FN(dictMode, mls)( \
1333 return ZSTD_BtFindBestMatch(ms, ip, iLimit, offBasePtr, mls, ZSTD_##dictMode); \
1336 #define GEN_ZSTD_HC_SEARCH_FN(dictMode, mls) \ argument
1337 ZSTD_SEARCH_FN_ATTRS size_t ZSTD_HC_SEARCH_FN(dictMode, mls)( \
1343 return ZSTD_HcFindBestMatch(ms, ip, iLimit, offsetPtr, mls, ZSTD_##dictMode); \
1346 #define GEN_ZSTD_ROW_SEARCH_FN(dictMode, mls, rowLog) \ argument
1347 ZSTD_SEARCH_FN_ATTRS size_t ZSTD_ROW_SEARCH_FN(dictMode, mls, rowLog)( \
1354 return ZSTD_RowFindBestMatch(ms, ip, iLimit, offsetPtr, mls, ZSTD_##dictMode, rowLog); \
1357 #define ZSTD_FOR_EACH_ROWLOG(X, dictMode, mls) \ argument
1358 X(dictMode, mls, 4) \
1359 X(dictMode, mls, 5) \
1360 X(dictMode, mls, 6)
1362 #define ZSTD_FOR_EACH_MLS_ROWLOG(X, dictMode) \ argument
1363 ZSTD_FOR_EACH_ROWLOG(X, dictMode, 4) \
1364 ZSTD_FOR_EACH_ROWLOG(X, dictMode, 5) \
1365 ZSTD_FOR_EACH_ROWLOG(X, dictMode, 6)
1367 #define ZSTD_FOR_EACH_MLS(X, dictMode) \ argument
1368 X(dictMode, 4) \
1369 X(dictMode, 5) \
1370 X(dictMode, 6)
1387 #define GEN_ZSTD_CALL_BT_SEARCH_FN(dictMode, mls) \ argument
1389 return ZSTD_BT_SEARCH_FN(dictMode, mls)(ms, ip, iend, offsetPtr);
1390 #define GEN_ZSTD_CALL_HC_SEARCH_FN(dictMode, mls) \ argument
1392 return ZSTD_HC_SEARCH_FN(dictMode, mls)(ms, ip, iend, offsetPtr);
1393 #define GEN_ZSTD_CALL_ROW_SEARCH_FN(dictMode, mls, rowLog) \ argument
1395 return ZSTD_ROW_SEARCH_FN(dictMode, mls, rowLog)(ms, ip, iend, offsetPtr);
1397 #define ZSTD_SWITCH_MLS(X, dictMode) \ argument
1399 ZSTD_FOR_EACH_MLS(X, dictMode) \
1402 #define ZSTD_SWITCH_ROWLOG(dictMode, mls) \ argument
1405 ZSTD_FOR_EACH_ROWLOG(GEN_ZSTD_CALL_ROW_SEARCH_FN, dictMode, mls) \
1410 #define ZSTD_SWITCH_SEARCH_METHOD(dictMode) \ argument
1413 ZSTD_SWITCH_MLS(GEN_ZSTD_CALL_HC_SEARCH_FN, dictMode) \
1416 ZSTD_SWITCH_MLS(GEN_ZSTD_CALL_BT_SEARCH_FN, dictMode) \
1419 ZSTD_SWITCH_MLS(ZSTD_SWITCH_ROWLOG, dictMode) \
1456 ZSTD_dictMode_e const dictMode) in ZSTD_searchMax() argument
1458 if (dictMode == ZSTD_noDict) { in ZSTD_searchMax()
1460 } else if (dictMode == ZSTD_extDict) { in ZSTD_searchMax()
1462 } else if (dictMode == ZSTD_dictMatchState) { in ZSTD_searchMax()
1464 } else if (dictMode == ZSTD_dedicatedDictSearch) { in ZSTD_searchMax()
1481 ZSTD_dictMode_e const dictMode) in ZSTD_compressBlock_lazy_generic() argument
1496 const int isDMS = dictMode == ZSTD_dictMatchState; in ZSTD_compressBlock_lazy_generic()
1497 const int isDDS = dictMode == ZSTD_dedicatedDictSearch; in ZSTD_compressBlock_lazy_generic()
1509 …DEBUGLOG(5, "ZSTD_compressBlock_lazy_generic (dictMode=%u) (searchFunc=%u)", (U32)dictMode, (U32)s… in ZSTD_compressBlock_lazy_generic()
1511 if (dictMode == ZSTD_noDict) { in ZSTD_compressBlock_lazy_generic()
1547 … const BYTE* repMatch = ((dictMode == ZSTD_dictMatchState || dictMode == ZSTD_dedicatedDictSearch) in ZSTD_compressBlock_lazy_generic()
1558 if ( dictMode == ZSTD_noDict in ZSTD_compressBlock_lazy_generic()
1566 …size_t const ml2 = ZSTD_searchMax(ms, ip, iend, &offsetFound, mls, rowLog, searchMethod, dictMode); in ZSTD_compressBlock_lazy_generic()
1581 if ( (dictMode == ZSTD_noDict) in ZSTD_compressBlock_lazy_generic()
1605 … size_t const ml2 = ZSTD_searchMax(ms, ip, iend, &offset2, mls, rowLog, searchMethod, dictMode); in ZSTD_compressBlock_lazy_generic()
1617 if ( (dictMode == ZSTD_noDict) in ZSTD_compressBlock_lazy_generic()
1641 … size_t const ml2 = ZSTD_searchMax(ms, ip, iend, &offset2, mls, rowLog, searchMethod, dictMode); in ZSTD_compressBlock_lazy_generic()
1657 if (dictMode == ZSTD_noDict) { in ZSTD_compressBlock_lazy_generic()
1699 if (dictMode == ZSTD_noDict) { in ZSTD_compressBlock_lazy_generic()