Lines Matching refs:offset
142 …tPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength, … in ZSTD_getPrice() argument
146 BYTE const offCode = (BYTE)ZSTD_highbit32(offset + 1); in ZSTD_getPrice()
165 …atePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength) in ZSTD_updatePrice() argument
184 BYTE const offCode = (BYTE)ZSTD_highbit32(offset + 1); in ZSTD_updatePrice()
426 U32 offset, rep[ZSTD_REP_NUM]; in ZSTD_compressBlock_opt_generic() local
636 offset = opt[cur].off; in ZSTD_compressBlock_opt_generic()
640 best_off = offset; in ZSTD_compressBlock_opt_generic()
657 offset = opt[cur].off; in ZSTD_compressBlock_opt_generic()
661 if (offset > ZSTD_REP_MOVE_OPT) { in ZSTD_compressBlock_opt_generic()
664 rep[0] = offset - ZSTD_REP_MOVE_OPT; in ZSTD_compressBlock_opt_generic()
665 offset--; in ZSTD_compressBlock_opt_generic()
667 if (offset != 0) { in ZSTD_compressBlock_opt_generic()
668 best_off = (offset == ZSTD_REP_MOVE_OPT) ? (rep[0] - 1) : (rep[offset]); in ZSTD_compressBlock_opt_generic()
669 if (offset != 1) in ZSTD_compressBlock_opt_generic()
675 offset--; in ZSTD_compressBlock_opt_generic()
678 ZSTD_updatePrice(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_generic()
679 ZSTD_storeSeq(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_generic()
725 U32 offset, rep[ZSTD_REP_NUM]; in ZSTD_compressBlock_opt_extDict_generic() local
950 offset = opt[cur].off; in ZSTD_compressBlock_opt_extDict_generic()
954 best_off = offset; in ZSTD_compressBlock_opt_extDict_generic()
971 offset = opt[cur].off; in ZSTD_compressBlock_opt_extDict_generic()
975 if (offset > ZSTD_REP_MOVE_OPT) { in ZSTD_compressBlock_opt_extDict_generic()
978 rep[0] = offset - ZSTD_REP_MOVE_OPT; in ZSTD_compressBlock_opt_extDict_generic()
979 offset--; in ZSTD_compressBlock_opt_extDict_generic()
981 if (offset != 0) { in ZSTD_compressBlock_opt_extDict_generic()
982 best_off = (offset == ZSTD_REP_MOVE_OPT) ? (rep[0] - 1) : (rep[offset]); in ZSTD_compressBlock_opt_extDict_generic()
983 if (offset != 1) in ZSTD_compressBlock_opt_extDict_generic()
990 offset--; in ZSTD_compressBlock_opt_extDict_generic()
993 ZSTD_updatePrice(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_extDict_generic()
994 ZSTD_storeSeq(seqStorePtr, litLength, anchor, offset, mlen - MINMATCH); in ZSTD_compressBlock_opt_extDict_generic()