Lines Matching refs:base
42 const BYTE* const base = ms->window.base; in ZSTD_updateDUBT() local
43 U32 const target = (U32)(ip - base); in ZSTD_updateDUBT()
54 … size_t const h = ZSTD_hashPtr(base + idx, hashLog, mls); /* assumption : ip + 8 <= iend */ in ZSTD_updateDUBT()
85 const BYTE* const base = ms->window.base; in ZSTD_insertDUBT1() local
88 const BYTE* const ip = (curr>=dictLimit) ? base + curr : dictBase + curr; in ZSTD_insertDUBT1()
91 const BYTE* const prefixStart = base + dictLimit; in ZSTD_insertDUBT1()
120 base : dictBase; in ZSTD_insertDUBT1()
129 match = base + matchIndex; /* preparation for next read of match[matchLength] */ in ZSTD_insertDUBT1()
181 const BYTE* const base = ms->window.base; in ZSTD_DUBT_findBetterDictMatch() local
182 const BYTE* const prefixStart = base + ms->window.dictLimit; in ZSTD_DUBT_findBetterDictMatch()
183 U32 const curr = (U32)(ip-base); in ZSTD_DUBT_findBetterDictMatch()
184 const BYTE* const dictBase = dms->window.base; in ZSTD_DUBT_findBetterDictMatch()
186 U32 const dictHighLimit = (U32)(dms->window.nextSrc - dms->window.base); in ZSTD_DUBT_findBetterDictMatch()
206 …match = base + dictMatchIndex + dictIndexDelta; /* to prepare for next usage of match[matchLengt… in ZSTD_DUBT_findBetterDictMatch()
256 const BYTE* const base = ms->window.base; in ZSTD_DUBT_findBestMatch() local
257 U32 const curr = (U32)(ip-base); in ZSTD_DUBT_findBestMatch()
315 const BYTE* const prefixStart = base + dictLimit; in ZSTD_DUBT_findBestMatch()
331 match = base + matchIndex; in ZSTD_DUBT_findBestMatch()
337 … match = base + matchIndex; /* to prepare for next usage of match[matchLength] */ in ZSTD_DUBT_findBestMatch()
403 if (ip < ms->window.base + ms->nextToUpdate) return 0; /* skipped area */ in ZSTD_BtFindBestMatch()
414 const BYTE* const base = ms->window.base; in ZSTD_dedicatedDictSearch_lazy_loadDictionary() local
415 U32 const target = (U32)(ip - base); in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
445 U32 const h = (U32)ZSTD_hashPtr(base + idx, hashLog, ms->cParams.minMatch); in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
514 U32 const h = (U32)ZSTD_hashPtr(base + idx, hashLog, ms->cParams.minMatch) in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
536 const BYTE* const ddsBase = dms->window.base; in ZSTD_dedicatedDictSearch_lazy_search()
642 const BYTE* const base = ms->window.base; in ZSTD_insertAndFindFirstIndex_internal() local
643 const U32 target = (U32)(ip - base); in ZSTD_insertAndFindFirstIndex_internal()
647 size_t const h = ZSTD_hashPtr(base+idx, hashLog, mls); in ZSTD_insertAndFindFirstIndex_internal()
678 const BYTE* const base = ms->window.base; in ZSTD_HcFindBestMatch() local
681 const BYTE* const prefixStart = base + dictLimit; in ZSTD_HcFindBestMatch()
683 const U32 curr = (U32)(ip-base); in ZSTD_HcFindBestMatch()
712 const BYTE* const match = base + matchIndex; in ZSTD_HcFindBestMatch()
744 const BYTE* const dmsBase = dms->window.base; in ZSTD_HcFindBestMatch()
838 void ZSTD_row_fillHashCache(ZSTD_MatchState_t* ms, const BYTE* base, in ZSTD_row_fillHashCache() argument
845 U32 const maxElemsToPrefetch = (base + idx) > iLimit ? 0 : (U32)(iLimit - (base + idx) + 1); in ZSTD_row_fillHashCache()
849 …U32 const hash = (U32)ZSTD_hashPtrSalted(base + idx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, ms->ha… in ZSTD_row_fillHashCache()
867 BYTE const* tagTable, BYTE const* base, in ZSTD_row_nextCachedHash() argument
872 …U32 const newHash = (U32)ZSTD_hashPtrSalted(base+idx+ZSTD_ROW_HASH_CACHE_SIZE, hashLog + ZSTD_ROW_… in ZSTD_row_nextCachedHash()
894 const BYTE* const base = ms->window.base; in ZSTD_row_update_internalImpl() local
898 … = useCache ? ZSTD_row_nextCachedHash(ms->hashCache, hashTable, tagTable, base, updateStartIdx, ha… in ZSTD_row_update_internalImpl()
899 …: (U32)ZSTD_hashPtrSalted(base + updateStartIdx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, ms->hashSa… in ZSTD_row_update_internalImpl()
905 …assert(hash == ZSTD_hashPtrSalted(base + updateStartIdx, hashLog + ZSTD_ROW_HASH_TAG_BITS, mls, ms… in ZSTD_row_update_internalImpl()
922 const BYTE* const base = ms->window.base; in ZSTD_row_update_internal() local
923 const U32 target = (U32)(ip - base); in ZSTD_row_update_internal()
938 ZSTD_row_fillHashCache(ms, base, rowLog, mls, idx, ip+1); in ZSTD_row_update_internal()
1154 const BYTE* const base = ms->window.base; in ZSTD_RowFindBestMatch() local
1157 const BYTE* const prefixStart = base + dictLimit; in ZSTD_RowFindBestMatch()
1159 const U32 curr = (U32)(ip-base); in ZSTD_RowFindBestMatch()
1208 …hash = ZSTD_row_nextCachedHash(hashCache, hashTable, tagTable, base, curr, hashLog, rowLog, mls, h… in ZSTD_RowFindBestMatch()
1238 PREFETCH_L1(base + matchIndex); in ZSTD_RowFindBestMatch()
1262 const BYTE* const match = base + matchIndex; in ZSTD_RowFindBestMatch()
1290 const BYTE* const dmsBase = dms->window.base; in ZSTD_RowFindBestMatch()
1529 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_lazy_generic() local
1531 const BYTE* const prefixLowest = base + prefixLowestIndex; in ZSTD_compressBlock_lazy_generic()
1543 const BYTE* const dictBase = isDxS ? dms->window.base : NULL; in ZSTD_compressBlock_lazy_generic()
1554 U32 const curr = (U32)(ip - base); in ZSTD_compressBlock_lazy_generic()
1571 ZSTD_row_fillHashCache(ms, base, rowLog, mls, ms->nextToUpdate, ilimit); in ZSTD_compressBlock_lazy_generic()
1589 const U32 repIndex = (U32)(ip - base) + 1 - offset_1; in ZSTD_compressBlock_lazy_generic()
1593 base + repIndex; in ZSTD_compressBlock_lazy_generic()
1642 const U32 repIndex = (U32)(ip - base) - offset_1; in ZSTD_compressBlock_lazy_generic()
1645 base + repIndex; in ZSTD_compressBlock_lazy_generic()
1678 const U32 repIndex = (U32)(ip - base) - offset_1; in ZSTD_compressBlock_lazy_generic()
1681 base + repIndex; in ZSTD_compressBlock_lazy_generic()
1715 U32 const matchIndex = (U32)((size_t)(start-base) - OFFBASE_TO_OFFSET(offBase)); in ZSTD_compressBlock_lazy_generic()
1716 …ch = (matchIndex < prefixLowestIndex) ? dictBase + matchIndex - dictIndexDelta : base + matchIndex; in ZSTD_compressBlock_lazy_generic()
1731 ZSTD_row_fillHashCache(ms, base, rowLog, mls, ms->nextToUpdate, ilimit); in ZSTD_compressBlock_lazy_generic()
1739 U32 const current2 = (U32)(ip-base); in ZSTD_compressBlock_lazy_generic()
1743 base + repIndex; in ZSTD_compressBlock_lazy_generic()
1949 const BYTE* const base = ms->window.base; in ZSTD_compressBlock_lazy_extDict_generic() local
1951 const BYTE* const prefixStart = base + dictLimit; in ZSTD_compressBlock_lazy_extDict_generic()
1969 ZSTD_row_fillHashCache(ms, base, rowLog, mls, ms->nextToUpdate, ilimit); in ZSTD_compressBlock_lazy_extDict_generic()
1983 U32 curr = (U32)(ip-base); in ZSTD_compressBlock_lazy_extDict_generic()
1988 const BYTE* const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2029 const BYTE* const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2061 const BYTE* const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()
2089 U32 const matchIndex = (U32)((size_t)(start-base) - OFFBASE_TO_OFFSET(offBase)); in ZSTD_compressBlock_lazy_extDict_generic()
2090 … const BYTE* match = (matchIndex < dictLimit) ? dictBase + matchIndex : base + matchIndex; in ZSTD_compressBlock_lazy_extDict_generic()
2105 ZSTD_row_fillHashCache(ms, base, rowLog, mls, ms->nextToUpdate, ilimit); in ZSTD_compressBlock_lazy_extDict_generic()
2112 const U32 repCurrent = (U32)(ip-base); in ZSTD_compressBlock_lazy_extDict_generic()
2115 const BYTE* const repBase = repIndex < dictLimit ? dictBase : base; in ZSTD_compressBlock_lazy_extDict_generic()