Lines Matching defs:curr

61  *  assumption : curr >= btlow == (curr - btmask)
65 U32 curr, const BYTE* inputEnd,
77 const BYTE* const ip = (curr>=dictLimit) ? base + curr : dictBase + curr;
78 const BYTE* const iend = (curr>=dictLimit) ? inputEnd : dictBase + dictLimit;
82 U32* smallerPtr = bt + 2*(curr&btMask);
88 U32 const windowLow = (curr - windowValid > maxDistance) ? curr - maxDistance : windowValid;
92 curr, dictLimit, windowLow);
93 assert(curr >= btLow);
99 assert(matchIndex < curr);
106 || (curr < dictLimit) /* both in extDict */) {
111 || (curr < dictLimit) );
122 curr, matchIndex, (U32)matchLength);
171 U32 const curr = (U32)(ip-base);
198 if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) ) {
200 curr, (U32)bestLength, (U32)matchLength, (U32)*offsetPtr, STORE_OFFSET(curr - matchIndex), dictMatchIndex, matchIndex);
201 bestLength = matchLength, *offsetPtr = STORE_OFFSET(curr - matchIndex);
221 U32 const mIndex = curr - (U32)STORED_OFFSET(*offsetPtr); (void)mIndex;
223 curr, (U32)bestLength, (U32)*offsetPtr, mIndex);
244 U32 const curr = (U32)(ip-base);
245 U32 const windowLow = ZSTD_getLowestMatchIndex(ms, curr, cParams->windowLog);
250 U32 const btLow = (btMask >= curr) ? 0 : curr - btMask;
259 DEBUGLOG(7, "ZSTD_DUBT_findBestMatch (%u) ", curr);
303 U32* smallerPtr = bt + 2*(curr&btMask);
304 U32* largerPtr = bt + 2*(curr&btMask) + 1;
305 U32 matchEndIdx = curr + 8 + 1;
310 hashTable[h] = curr; /* Update Hash Table */
330 if ( (4*(int)(matchLength-bestLength)) > (int)(ZSTD_highbit32(curr-matchIndex+1) - ZSTD_highbit32((U32)offsetPtr[0]+1)) )
331 bestLength = matchLength, *offsetPtr = STORE_OFFSET(curr - matchIndex);
368 assert(matchEndIdx > curr+8); /* ensure nextToUpdate is increased */
371 U32 const mIndex = curr - (U32)STORED_OFFSET(*offsetPtr); (void)mIndex;
373 curr, (U32)bestLength, (U32)*offsetPtr, mIndex);
519 const BYTE* const prefixStart, const U32 curr,
564 *offsetPtr = STORE_OFFSET(curr - (matchIndex + ddsIndexDelta));
601 *offsetPtr = STORE_OFFSET(curr - (matchIndex + ddsIndexDelta));
663 const U32 curr = (U32)(ip-base);
666 const U32 withinMaxDistance = (curr - lowestValid > maxDistance) ? curr - maxDistance : lowestValid;
669 const U32 minChain = curr > chainSize ? curr - chainSize : 0;
706 *offsetPtr = STORE_OFFSET(curr - matchIndex);
717 ip, iLimit, prefixStart, curr, dictLimit, ddsIdx);
741 assert(curr > matchIndex + dmsIndexDelta);
742 *offsetPtr = STORE_OFFSET(curr - (matchIndex + dmsIndexDelta));
1137 const U32 curr = (U32)(ip-base);
1140 const U32 withinMaxDistance = (curr - lowestValid > maxDistance) ? curr - maxDistance : lowestValid;
1183 U32 const hash = ZSTD_row_nextCachedHash(hashCache, hashTable, tagTable, base, curr, hashLog, rowLog, mls);
1221 assert(matchIndex < curr);
1239 *offsetPtr = STORE_OFFSET(curr - matchIndex);
1248 ip, iLimit, prefixStart, curr, dictLimit, ddsIdx);
1277 assert(matchIndex < curr);
1287 assert(curr > matchIndex + dmsIndexDelta);
1288 *offsetPtr = STORE_OFFSET(curr - (matchIndex + dmsIndexDelta));
1512 U32 const curr = (U32)(ip - base);
1513 U32 const windowLow = ZSTD_getLowestPrefixIndex(ms, curr, ms->cParams.windowLog);
1514 U32 const maxRep = curr - windowLow;
1908 U32 curr = (U32)(ip-base);
1911 { const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr+1, windowLog);
1912 const U32 repIndex = (U32)(curr+1 - offset_1);
1916 & (offset_1 <= curr+1 - windowLow) ) /* note: we are searching at curr+1 */
1940 curr++;
1943 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog);
1944 const U32 repIndex = (U32)(curr - offset_1);
1948 & (offset_1 <= curr - windowLow) ) /* equivalent to `curr > repIndex >= windowLow` */
1972 curr++;
1975 const U32 windowLow = ZSTD_getLowestMatchIndex(ms, curr, windowLog);
1976 const U32 repIndex = (U32)(curr - offset_1);
1980 & (offset_1 <= curr - windowLow) ) /* equivalent to `curr > repIndex >= windowLow` */
2027 & (offset_2 <= repCurrent - windowLow) ) /* equivalent to `curr > repIndex >= windowLow` */