Lines Matching defs:zc

215 U32 ZSTD_insertAndFindFirstIndexHash3(ZSTD_CCtx *zc, const BYTE *ip)
217 U32 *const hashTable3 = zc->hashTable3;
218 U32 const hashLog3 = zc->hashLog3;
219 const BYTE *const base = zc->base;
220 U32 idx = zc->nextToUpdate3;
221 const U32 target = zc->nextToUpdate3 = (U32)(ip - base);
235 static U32 ZSTD_insertBtAndGetAllMatches(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, U32 nbCompares, const U32 mls, U32 extDict,
238 const BYTE *const base = zc->base;
240 const U32 hashLog = zc->params.cParams.hashLog;
242 U32 *const hashTable = zc->hashTable;
244 U32 *const bt = zc->chainTable;
245 const U32 btLog = zc->params.cParams.chainLog - 1;
248 const BYTE *const dictBase = zc->dictBase;
249 const U32 dictLimit = zc->dictLimit;
253 const U32 windowLow = zc->lowLimit;
264 U32 const matchIndex3 = ZSTD_insertAndFindFirstIndexHash3(zc, ip);
351 zc->nextToUpdate = (matchEndIdx > curr + 8) ? matchEndIdx - 8 : curr + 1;
356 static U32 ZSTD_BtGetAllMatches(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, const U32 maxNbAttempts, const U32 mls, ZSTD_match_t *matches,
359 if (ip < zc->base + zc->nextToUpdate)
361 ZSTD_updateTree(zc, ip, iLimit, maxNbAttempts, mls);
362 return ZSTD_insertBtAndGetAllMatches(zc, ip, iLimit, maxNbAttempts, mls, 0, matches, minMatchLen);
365 static U32 ZSTD_BtGetAllMatches_selectMLS(ZSTD_CCtx *zc, /* Index table will be updated */
370 case 3: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 3, matches, minMatchLen);
372 case 4: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 4, matches, minMatchLen);
373 case 5: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 5, matches, minMatchLen);
375 case 6: return ZSTD_BtGetAllMatches(zc, ip, iHighLimit, maxNbAttempts, 6, matches, minMatchLen);
380 static U32 ZSTD_BtGetAllMatches_extDict(ZSTD_CCtx *zc, const BYTE *const ip, const BYTE *const iLimit, const U32 maxNbAttempts, const U32 mls,
383 if (ip < zc->base + zc->nextToUpdate)
385 ZSTD_updateTree_extDict(zc, ip, iLimit, maxNbAttempts, mls);
386 return ZSTD_insertBtAndGetAllMatches(zc, ip, iLimit, maxNbAttempts, mls, 1, matches, minMatchLen);
389 static U32 ZSTD_BtGetAllMatches_selectMLS_extDict(ZSTD_CCtx *zc, /* Index table will be updated */
394 case 3: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 3, matches, minMatchLen);
396 case 4: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 4, matches, minMatchLen);
397 case 5: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 5, matches, minMatchLen);
399 case 6: return ZSTD_BtGetAllMatches_extDict(zc, ip, iHighLimit, maxNbAttempts, 6, matches, minMatchLen);