Lines Matching refs:mls

22                 U32 mls)  in ZSTD_updateDUBT()  argument
44 … size_t const h = ZSTD_hashPtr(base + idx, hashLog, mls); /* assumption : ip + 8 <= iend */ in ZSTD_updateDUBT()
159 U32 const mls, in ZSTD_DUBT_findBetterDictMatch() argument
166 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_DUBT_findBetterDictMatch()
234 U32 const mls, in ZSTD_DUBT_findBestMatch() argument
240 size_t const h = ZSTD_hashPtr(ip, hashLog, mls); in ZSTD_DUBT_findBestMatch()
365 mls, dictMode); in ZSTD_DUBT_findBestMatch()
385 const U32 mls /* template */, in ZSTD_BtFindBestMatch() argument
390 ZSTD_updateDUBT(ms, ip, iLimit, mls); in ZSTD_BtFindBestMatch()
391 return ZSTD_DUBT_findBestMatch(ms, ip, iLimit, offsetPtr, mls, dictMode); in ZSTD_BtFindBestMatch()
620 const BYTE* ip, U32 const mls) in ZSTD_insertAndFindFirstIndex_internal() argument
631 size_t const h = ZSTD_hashPtr(base+idx, hashLog, mls); in ZSTD_insertAndFindFirstIndex_internal()
638 return hashTable[ZSTD_hashPtr(ip, hashLog, mls)]; in ZSTD_insertAndFindFirstIndex_internal()
652 const U32 mls, const ZSTD_dictMode_e dictMode) in ZSTD_HcFindBestMatch() argument
677 ? ZSTD_hashPtr(ip, ddsHashLog, mls) << ZSTD_LAZY_DDSS_BUCKET_LOG : 0; in ZSTD_HcFindBestMatch()
687 matchIndex = ZSTD_insertAndFindFirstIndex_internal(ms, cParams, ip, mls); in ZSTD_HcFindBestMatch()
729 matchIndex = dms->hashTable[ZSTD_hashPtr(ip, dms->cParams.hashLog, mls)]; in ZSTD_HcFindBestMatch()
872 U32 const rowLog, U32 const mls, in ZSTD_row_fillHashCache() argument
882 U32 const hash = (U32)ZSTD_hashPtr(base + idx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls); in ZSTD_row_fillHashCache()
900 U32 const rowLog, U32 const mls) in ZSTD_row_nextCachedHash() argument
902 …Hash = (U32)ZSTD_hashPtr(base+idx+ZSTD_ROW_HASH_CACHE_SIZE, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls); in ZSTD_row_nextCachedHash()
916 U32 const mls, U32 const rowLog, in ZSTD_row_update_internalImpl() argument
926 …_row_nextCachedHash(ms->hashCache, hashTable, tagTable, base, updateStartIdx, hashLog, rowLog, mls) in ZSTD_row_update_internalImpl()
927 … : (U32)ZSTD_hashPtr(base + updateStartIdx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls); in ZSTD_row_update_internalImpl()
934 assert(hash == ZSTD_hashPtr(base + updateStartIdx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls)); in ZSTD_row_update_internalImpl()
945 U32 const mls, U32 const rowLog, in ZSTD_row_update_internal() argument
963 ZSTD_row_update_internalImpl(ms, idx, bound, mls, rowLog, rowMask, useCache); in ZSTD_row_update_internal()
965 ZSTD_row_fillHashCache(ms, base, rowLog, mls, idx, ip+1); in ZSTD_row_update_internal()
969 ZSTD_row_update_internalImpl(ms, idx, target, mls, rowLog, rowMask, useCache); in ZSTD_row_update_internal()
980 const U32 mls = MIN(ms->cParams.minMatch, 6 /* mls caps out at 6 */); in ZSTD_row_update() local
983 ZSTD_row_update_internal(ms, ip, mls, rowLog, rowMask, 0 /* dont use cache */); in ZSTD_row_update()
1133 const U32 mls, const ZSTD_dictMode_e dictMode, in ZSTD_RowFindBestMatch() argument
1171 ddsIdx = ZSTD_hashPtr(ip, ddsHashLog, mls) << ZSTD_LAZY_DDSS_BUCKET_LOG; in ZSTD_RowFindBestMatch()
1181 U32 const dmsHash = (U32)ZSTD_hashPtr(ip, dms->rowHashLog + ZSTD_ROW_HASH_TAG_BITS, mls); in ZSTD_RowFindBestMatch()
1190 ZSTD_row_update_internal(ms, ip, mls, rowLog, rowMask, 1 /* useCache */); in ZSTD_RowFindBestMatch()
1192 …t hash = ZSTD_row_nextCachedHash(hashCache, hashTable, tagTable, base, curr, hashLog, rowLog, mls); in ZSTD_RowFindBestMatch()
1336 #define GEN_ZSTD_BT_VTABLE(dictMode, mls) \ argument
1337 static size_t ZSTD_BtFindBestMatch_##dictMode##_##mls( \
1342 assert(MAX(4, MIN(6, ms->cParams.minMatch)) == mls); \
1343 return ZSTD_BtFindBestMatch(ms, ip, iLimit, offsetPtr, mls, ZSTD_##dictMode); \
1345 static const ZSTD_LazyVTable ZSTD_BtVTable_##dictMode##_##mls = { \
1346 ZSTD_BtFindBestMatch_##dictMode##_##mls \
1349 #define GEN_ZSTD_HC_VTABLE(dictMode, mls) \ argument
1350 static size_t ZSTD_HcFindBestMatch_##dictMode##_##mls( \
1355 assert(MAX(4, MIN(6, ms->cParams.minMatch)) == mls); \
1356 return ZSTD_HcFindBestMatch(ms, ip, iLimit, offsetPtr, mls, ZSTD_##dictMode); \
1358 static const ZSTD_LazyVTable ZSTD_HcVTable_##dictMode##_##mls = { \
1359 ZSTD_HcFindBestMatch_##dictMode##_##mls \
1362 #define GEN_ZSTD_ROW_VTABLE(dictMode, mls, rowLog) \ argument
1363 static size_t ZSTD_RowFindBestMatch_##dictMode##_##mls##_##rowLog( \
1368 assert(MAX(4, MIN(6, ms->cParams.minMatch)) == mls); \
1370 return ZSTD_RowFindBestMatch(ms, ip, iLimit, offsetPtr, mls, ZSTD_##dictMode, rowLog); \
1372 static const ZSTD_LazyVTable ZSTD_RowVTable_##dictMode##_##mls##_##rowLog = { \
1373 ZSTD_RowFindBestMatch_##dictMode##_##mls##_##rowLog \
1376 #define ZSTD_FOR_EACH_ROWLOG(X, dictMode, mls) \ argument
1377 X(dictMode, mls, 4) \
1378 X(dictMode, mls, 5) \
1379 X(dictMode, mls, 6)
1418 #define GEN_ZSTD_ROW_VTABLE_ARRAY_(dictMode, mls) \ argument
1420 &ZSTD_RowVTable_##dictMode##_##mls##_4, \
1421 &ZSTD_RowVTable_##dictMode##_##mls##_5, \
1422 &ZSTD_RowVTable_##dictMode##_##mls##_6 \
1461 U32 const mls = MAX(4, MIN(6, ms->cParams.minMatch)); in ZSTD_selectLazyVTable() local
1465 return hcVTables[dictMode][mls - 4]; in ZSTD_selectLazyVTable()
1467 return btVTables[dictMode][mls - 4]; in ZSTD_selectLazyVTable()
1469 return rowVTables[dictMode][mls - 4][rowLog - 4]; in ZSTD_selectLazyVTable()