Lines Matching refs:rep
408 U32 rep[ZSTD_REP_NUM], U32 const ll0, in ZSTD_insertBtAndGetAllMatches()
443 U32 const repOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode]; in ZSTD_insertBtAndGetAllMatches()
564 U32 rep[ZSTD_REP_NUM], U32 const ll0, in ZSTD_BtGetAllMatches()
573 …case 3 : return ZSTD_insertBtAndGetAllMatches(ms, cParams, ip, iHighLimit, extDict, rep, ll0, matc… in ZSTD_BtGetAllMatches()
575 …case 4 : return ZSTD_insertBtAndGetAllMatches(ms, cParams, ip, iHighLimit, extDict, rep, ll0, matc… in ZSTD_BtGetAllMatches()
576 …case 5 : return ZSTD_insertBtAndGetAllMatches(ms, cParams, ip, iHighLimit, extDict, rep, ll0, matc… in ZSTD_BtGetAllMatches()
578 …case 6 : return ZSTD_insertBtAndGetAllMatches(ms, cParams, ip, iHighLimit, extDict, rep, ll0, matc… in ZSTD_BtGetAllMatches()
587 U32 rep[3]; member
590 repcodes_t ZSTD_updateRep(U32 const rep[3], U32 const offset, U32 const ll0) in ZSTD_updateRep()
594 newReps.rep[2] = rep[1]; in ZSTD_updateRep()
595 newReps.rep[1] = rep[0]; in ZSTD_updateRep()
596 newReps.rep[0] = offset - ZSTD_REP_MOVE; in ZSTD_updateRep()
600 U32 const currentOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode]; in ZSTD_updateRep()
601 newReps.rep[2] = (repCode >= 2) ? rep[1] : rep[2]; in ZSTD_updateRep()
602 newReps.rep[1] = rep[0]; in ZSTD_updateRep()
603 newReps.rep[0] = currentOffset; in ZSTD_updateRep()
605 memcpy(&newReps, rep, sizeof(newReps)); in ZSTD_updateRep()
667 U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_opt_generic()
703 …U32 const nbMatches = ZSTD_BtGetAllMatches(ms, cParams, ip, iend, extDict, rep, ll0, matches, minM… in ZSTD_compressBlock_opt_generic()
707 { U32 i ; for (i=0; i<ZSTD_REP_NUM; i++) opt[0].rep[i] = rep[i]; } in ZSTD_compressBlock_opt_generic()
737 repcodes_t const repHistory = ZSTD_updateRep(rep, offset, ll0); in ZSTD_compressBlock_opt_generic()
746 memcpy(opt[pos].rep, &repHistory, sizeof(repHistory)); in ZSTD_compressBlock_opt_generic()
773 memcpy(opt[cur].rep, opt[cur-1].rep, sizeof(opt[cur].rep)); in ZSTD_compressBlock_opt_generic()
789 …nbMatches = ZSTD_BtGetAllMatches(ms, cParams, inr, iend, extDict, opt[cur].rep, ll0, matches, minM… in ZSTD_compressBlock_opt_generic()
809 repcodes_t const repHistory = ZSTD_updateRep(opt[cur].rep, offset, ll0); in ZSTD_compressBlock_opt_generic()
829 memcpy(opt[pos].rep, &repHistory, sizeof(repHistory)); in ZSTD_compressBlock_opt_generic()
871 rep[2] = rep[1]; in ZSTD_compressBlock_opt_generic()
872 rep[1] = rep[0]; in ZSTD_compressBlock_opt_generic()
873 rep[0] = offset - ZSTD_REP_MOVE; in ZSTD_compressBlock_opt_generic()
877 … U32 const currentOffset = (repCode==ZSTD_REP_NUM) ? (rep[0] - 1) : rep[repCode]; in ZSTD_compressBlock_opt_generic()
878 if (repCode >= 2) rep[2] = rep[1]; in ZSTD_compressBlock_opt_generic()
879 rep[1] = rep[0]; in ZSTD_compressBlock_opt_generic()
880 rep[0] = currentOffset; in ZSTD_compressBlock_opt_generic()
897 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_btopt()
901 …return ZSTD_compressBlock_opt_generic(ms, seqStore, rep, cParams, src, srcSize, 0 /*optLevel*/, 0 … in ZSTD_compressBlock_btopt()
905 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_btultra()
908 …return ZSTD_compressBlock_opt_generic(ms, seqStore, rep, cParams, src, srcSize, 2 /*optLevel*/, 0 … in ZSTD_compressBlock_btultra()
912 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_btopt_extDict()
915 …return ZSTD_compressBlock_opt_generic(ms, seqStore, rep, cParams, src, srcSize, 0 /*optLevel*/, 1 … in ZSTD_compressBlock_btopt_extDict()
919 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM], in ZSTD_compressBlock_btultra_extDict()
922 …return ZSTD_compressBlock_opt_generic(ms, seqStore, rep, cParams, src, srcSize, 2 /*optLevel*/, 1 … in ZSTD_compressBlock_btultra_extDict()