Lines Matching refs:curr

65                  U32 curr, const BYTE* inputEnd,  in ZSTD_insertDUBT1()  argument
77 const BYTE* const ip = (curr>=dictLimit) ? base + curr : dictBase + curr; in ZSTD_insertDUBT1()
78 const BYTE* const iend = (curr>=dictLimit) ? inputEnd : dictBase + dictLimit; in ZSTD_insertDUBT1()
82 U32* smallerPtr = bt + 2*(curr&btMask); in ZSTD_insertDUBT1()
88 U32 const windowLow = (curr - windowValid > maxDistance) ? curr - maxDistance : windowValid; in ZSTD_insertDUBT1()
92 curr, dictLimit, windowLow); in ZSTD_insertDUBT1()
93 assert(curr >= btLow); in ZSTD_insertDUBT1()
99 assert(matchIndex < curr); in ZSTD_insertDUBT1()
106 || (curr < dictLimit) /* both in extDict */) { in ZSTD_insertDUBT1()
111 || (curr < dictLimit) ); in ZSTD_insertDUBT1()
122 curr, matchIndex, (U32)matchLength); in ZSTD_insertDUBT1()
171 U32 const curr = (U32)(ip-base); in ZSTD_DUBT_findBetterDictMatch() local
198 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBetterDictMatch()
200curr, (U32)bestLength, (U32)matchLength, (U32)*offsetPtr, STORE_OFFSET(curr - matchIndex), dictMat… in ZSTD_DUBT_findBetterDictMatch()
201 bestLength = matchLength, *offsetPtr = STORE_OFFSET(curr - matchIndex); in ZSTD_DUBT_findBetterDictMatch()
221 U32 const mIndex = curr - (U32)STORED_OFFSET(*offsetPtr); (void)mIndex; in ZSTD_DUBT_findBetterDictMatch()
223 curr, (U32)bestLength, (U32)*offsetPtr, mIndex); in ZSTD_DUBT_findBetterDictMatch()
244 U32 const curr = (U32)(ip-base); in ZSTD_DUBT_findBestMatch() local
245 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog); in ZSTD_DUBT_findBestMatch()
250 U32 const btLow = (btMask >= curr) ? 0 : curr - btMask; in ZSTD_DUBT_findBestMatch()
259 DEBUGLOG(7, "ZSTD_DUBT_findBestMatch (%u) ", curr); in ZSTD_DUBT_findBestMatch()
303 U32* smallerPtr = bt + 2*(curr&btMask); in ZSTD_DUBT_findBestMatch()
304 U32* largerPtr = bt + 2*(curr&btMask) + 1; in ZSTD_DUBT_findBestMatch()
305 U32 matchEndIdx = curr + 8 + 1; in ZSTD_DUBT_findBestMatch()
310 hashTable[h] = curr; /* Update Hash Table */ in ZSTD_DUBT_findBestMatch()
330 …if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32(… in ZSTD_DUBT_findBestMatch()
331 bestLength = matchLength, *offsetPtr = STORE_OFFSET(curr - matchIndex); in ZSTD_DUBT_findBestMatch()
368 assert(matchEndIdx > curr+8); /* ensure nextToUpdate is increased */ in ZSTD_DUBT_findBestMatch()
371 U32 const mIndex = curr - (U32)STORED_OFFSET(*offsetPtr); (void)mIndex; in ZSTD_DUBT_findBestMatch()
373 curr, (U32)bestLength, (U32)*offsetPtr, mIndex); in ZSTD_DUBT_findBestMatch()
519 const BYTE* const prefixStart, const U32 curr, in ZSTD_dedicatedDictSearch_lazy_search() argument
564 *offsetPtr = STORE_OFFSET(curr - (matchIndex + ddsIndexDelta)); in ZSTD_dedicatedDictSearch_lazy_search()
601 *offsetPtr = STORE_OFFSET(curr - (matchIndex + ddsIndexDelta)); in ZSTD_dedicatedDictSearch_lazy_search()
663 const U32 curr = (U32)(ip-base); in ZSTD_HcFindBestMatch() local
666 …const U32 withinMaxDistance = (curr - lowestValid > maxDistance) ? curr - maxDistance : lowestVali… in ZSTD_HcFindBestMatch()
669 const U32 minChain = curr > chainSize ? curr - chainSize : 0; in ZSTD_HcFindBestMatch()
706 *offsetPtr = STORE_OFFSET(curr - matchIndex); in ZSTD_HcFindBestMatch()
717 ip, iLimit, prefixStart, curr, dictLimit, ddsIdx); in ZSTD_HcFindBestMatch()
741 assert(curr > matchIndex + dmsIndexDelta); in ZSTD_HcFindBestMatch()
742 *offsetPtr = STORE_OFFSET(curr - (matchIndex + dmsIndexDelta)); in ZSTD_HcFindBestMatch()
1146 const U32 curr = (U32)(ip-base); in ZSTD_RowFindBestMatch() local
1149 …const U32 withinMaxDistance = (curr - lowestValid > maxDistance) ? curr - maxDistance : lowestVali… in ZSTD_RowFindBestMatch()
1192 …U32 const hash = ZSTD_row_nextCachedHash(hashCache, hashTable, tagTable, base, curr, hashLog, rowL… in ZSTD_RowFindBestMatch()
1230 assert(matchIndex < curr); in ZSTD_RowFindBestMatch()
1248 *offsetPtr = STORE_OFFSET(curr - matchIndex); in ZSTD_RowFindBestMatch()
1257 ip, iLimit, prefixStart, curr, dictLimit, ddsIdx); in ZSTD_RowFindBestMatch()
1286 assert(matchIndex < curr); in ZSTD_RowFindBestMatch()
1296 assert(curr > matchIndex + dmsIndexDelta); in ZSTD_RowFindBestMatch()
1297 *offsetPtr = STORE_OFFSET(curr - (matchIndex + dmsIndexDelta)); in ZSTD_RowFindBestMatch()
1513 U32 const curr = (U32)(ip - base); in ZSTD_compressBlock_lazy_generic() local
1514 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, ms->cParams.windowLog); in ZSTD_compressBlock_lazy_generic()
1515 U32 const maxRep = curr - windowLow; in ZSTD_compressBlock_lazy_generic()
1910 U32 curr = (U32)(ip-base); in ZSTD_compressBlock_lazy_extDict_generic() local
1913 { const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr+1, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1914 const U32 repIndex = (U32)(curr+1 - offset_1); in ZSTD_compressBlock_lazy_extDict_generic()
1918 & (offset_1 <= curr+1 - windowLow) ) /* note: we are searching at curr+1 */ in ZSTD_compressBlock_lazy_extDict_generic()
1942 curr++; in ZSTD_compressBlock_lazy_extDict_generic()
1945 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1946 const U32 repIndex = (U32)(curr - offset_1); in ZSTD_compressBlock_lazy_extDict_generic()
1950 … & (offset_1 <= curr - windowLow) ) /* equivalent to `curr > repIndex >= windowLow` */ in ZSTD_compressBlock_lazy_extDict_generic()
1974 curr++; in ZSTD_compressBlock_lazy_extDict_generic()
1977 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog); in ZSTD_compressBlock_lazy_extDict_generic()
1978 const U32 repIndex = (U32)(curr - offset_1); in ZSTD_compressBlock_lazy_extDict_generic()
1982 … & (offset_1 <= curr - windowLow) ) /* equivalent to `curr > repIndex >= windowLow` */ in ZSTD_compressBlock_lazy_extDict_generic()