Lines Matching refs:curr
1038 U32 const curr = (U32)(ip - base); in ZSTD_compressBlock_fast_generic() local
1041 hashTable[h] = curr; /* update hash table */ in ZSTD_compressBlock_fast_generic()
1072 …hashTable[ZSTD_hashPtr(base + curr + 2, hBits, mls)] = curr + 2; /* here because curr+2 could be >… in ZSTD_compressBlock_fast_generic()
1141 const U32 curr = (U32)(ip - base); in ZSTD_compressBlock_fast_extDict_generic() local
1142 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */ in ZSTD_compressBlock_fast_extDict_generic()
1146 hashTable[h] = curr; /* update hash table */ in ZSTD_compressBlock_fast_extDict_generic()
1169 offset = curr - matchIndex; in ZSTD_compressBlock_fast_extDict_generic()
1182 hashTable[ZSTD_hashPtr(base + curr + 2, hBits, mls)] = curr + 2; in ZSTD_compressBlock_fast_extDict_generic()
1287 U32 const curr = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_generic() local
1292 hashLong[h2] = hashSmall[h] = curr; /* update hash tables */ in ZSTD_compressBlock_doubleFast_generic()
1312 hashLong[h3] = curr + 1; in ZSTD_compressBlock_doubleFast_generic()
1348 …hashLong[ZSTD_hashPtr(base + curr + 2, hBitsL, 8)] = hashSmall[ZSTD_hashPtr(base + curr + 2, hBits… in ZSTD_compressBlock_doubleFast_generic()
1349 curr + 2; /* here because curr+2 could be > iend-8 */ in ZSTD_compressBlock_doubleFast_generic()
1428 const U32 curr = (U32)(ip - base); in ZSTD_compressBlock_doubleFast_extDict_generic() local
1429 const U32 repIndex = curr + 1 - offset_1; /* offset_1 expected <= curr +1 */ in ZSTD_compressBlock_doubleFast_extDict_generic()
1433 hashSmall[hSmall] = hashLong[hLong] = curr; /* update hash table */ in ZSTD_compressBlock_doubleFast_extDict_generic()
1447 offset = curr - matchLongIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1463 hashLong[h3] = curr + 1; in ZSTD_compressBlock_doubleFast_extDict_generic()
1469 offset = curr + 1 - matchIndex3; in ZSTD_compressBlock_doubleFast_extDict_generic()
1479 offset = curr - matchIndex; in ZSTD_compressBlock_doubleFast_extDict_generic()
1502 hashSmall[ZSTD_hashPtr(base + curr + 2, hBitsS, mls)] = curr + 2; in ZSTD_compressBlock_doubleFast_extDict_generic()
1503 hashLong[ZSTD_hashPtr(base + curr + 2, hBitsL, 8)] = curr + 2; in ZSTD_compressBlock_doubleFast_extDict_generic()
1577 const U32 curr = (U32)(ip - base); in ZSTD_insertBt1() local
1578 const U32 btLow = btMask >= curr ? 0 : curr - btMask; in ZSTD_insertBt1()
1579 U32 *smallerPtr = bt + 2 * (curr & btMask); in ZSTD_insertBt1()
1583 U32 matchEndIdx = curr + 8; in ZSTD_insertBt1()
1586 hashTable[h] = curr; /* Update Hash Table */ in ZSTD_insertBt1()
1638 if (matchEndIdx > curr + 8) in ZSTD_insertBt1()
1639 return matchEndIdx - curr - 8; in ZSTD_insertBt1()
1659 const U32 curr = (U32)(ip - base); in ZSTD_insertBtAndFindBestMatch() local
1660 const U32 btLow = btMask >= curr ? 0 : curr - btMask; in ZSTD_insertBtAndFindBestMatch()
1662 U32 *smallerPtr = bt + 2 * (curr & btMask); in ZSTD_insertBtAndFindBestMatch()
1663 U32 *largerPtr = bt + 2 * (curr & btMask) + 1; in ZSTD_insertBtAndFindBestMatch()
1664 U32 matchEndIdx = curr + 8; in ZSTD_insertBtAndFindBestMatch()
1668 hashTable[h] = curr; /* Update Hash Table */ in ZSTD_insertBtAndFindBestMatch()
1689 …if ((4 * (int)(matchLength - bestLength)) > (int)(ZSTD_highbit32(curr - matchIndex + 1) - ZSTD_hig… in ZSTD_insertBtAndFindBestMatch()
1690 bestLength = matchLength, *offsetPtr = ZSTD_REP_MOVE + curr - matchIndex; in ZSTD_insertBtAndFindBestMatch()
1720 zc->nextToUpdate = (matchEndIdx > curr + 8) ? matchEndIdx - 8 : curr + 1; in ZSTD_insertBtAndFindBestMatch()
1832 const U32 curr = (U32)(ip - base); in ZSTD_HcFindBestMatch_generic() local
1833 const U32 minChain = curr > chainSize ? curr - chainSize : 0; in ZSTD_HcFindBestMatch_generic()
1856 *offsetPtr = curr - matchIndex + ZSTD_REP_MOVE; in ZSTD_HcFindBestMatch_generic()
2091 U32 curr = (U32)(ip - base); in ZSTD_compressBlock_lazy_extDict_generic() local
2095 const U32 repIndex = (U32)(curr + 1 - offset_1); in ZSTD_compressBlock_lazy_extDict_generic()
2126 curr++; in ZSTD_compressBlock_lazy_extDict_generic()
2129 const U32 repIndex = (U32)(curr - offset_1); in ZSTD_compressBlock_lazy_extDict_generic()
2161 curr++; in ZSTD_compressBlock_lazy_extDict_generic()
2164 const U32 repIndex = (U32)(curr - offset_1); in ZSTD_compressBlock_lazy_extDict_generic()
2338 const U32 curr = (U32)(istart - base); in ZSTD_compressBlock_internal() local
2342 if (curr > zc->nextToUpdate + 384) in ZSTD_compressBlock_internal()
2343 …zc->nextToUpdate = curr - MIN(192, (U32)(curr - zc->nextToUpdate - 384)); /* update tree not updat… in ZSTD_compressBlock_internal()
2379 U32 const curr = (U32)(ip - cctx->base); in ZSTD_compress_generic() local
2380 U32 const newCurr = (curr & cycleMask) + (1 << cctx->params.cParams.windowLog); in ZSTD_compress_generic()
2381 U32 const correction = curr - newCurr; in ZSTD_compress_generic()