Home
last modified time | relevance | path

Searched refs:offBase (Results 1 – 6 of 6) sorted by relevance

/linux/lib/zstd/compress/
H A Dzstd_lazy.c1583 size_t offBase = REPCODE1_TO_OFFBASE; in ZSTD_compressBlock_lazy_generic() local
1611 matchLength = ml2, start = ip, offBase = offbaseFound; in ZSTD_compressBlock_lazy_generic()
1634 && (offBase) && ((offset_1>0) & (MEM_read32(ip) == MEM_read32(ip - offset_1)))) { in ZSTD_compressBlock_lazy_generic()
1637 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_generic()
1639 matchLength = mlRep, offBase = REPCODE1_TO_OFFBASE, start = ip; in ZSTD_compressBlock_lazy_generic()
1651 int const gain1 = (int)(matchLength*3 - ZSTD_highbit32((U32)offBase) + 1); in ZSTD_compressBlock_lazy_generic()
1653 matchLength = mlRep, offBase = REPCODE1_TO_OFFBASE, start = ip; in ZSTD_compressBlock_lazy_generic()
1659 int const gain1 = (int)(matchLength*4 - ZSTD_highbit32((U32)offBase) + 4); in ZSTD_compressBlock_lazy_generic()
1661 matchLength = ml2, offBase = ofbCandidate, start = ip; in ZSTD_compressBlock_lazy_generic()
1670 && (offBase) && ((offset_1>0) & (MEM_read32(ip) == MEM_read32(ip - offset_1)))) { in ZSTD_compressBlock_lazy_generic()
[all …]
H A Dzstd_compress_sequences.c323 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, extraBits); in ZSTD_encodeSequences_body()
326 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase >> extraBits, in ZSTD_encodeSequences_body()
329 BIT_addBits(&blockStream, sequences[nbSeq-1].offBase, ofCodeTable[nbSeq-1]); in ZSTD_encodeSequences_body()
344 (unsigned)sequences[n].offBase); in ZSTD_encodeSequences_body()
360 BIT_addBits(&blockStream, sequences[n].offBase, extraBits); in ZSTD_encodeSequences_body()
363 BIT_addBits(&blockStream, sequences[n].offBase >> extraBits, in ZSTD_encodeSequences_body()
366 BIT_addBits(&blockStream, sequences[n].offBase, ofBits); /* 31 */ in ZSTD_encodeSequences_body()
H A Dzstd_compress_internal.h84 U32 offBase; /* offBase == Offset + ZSTD_REP_NUM, or repcode 1,2,3 */ member
729 U32 offBase, in ZSTD_storeSeqOnly() argument
744 seqStorePtr->sequences[0].offBase = offBase; in ZSTD_storeSeqOnly()
770 U32 offBase, in ZSTD_storeSeq() argument
780 pos, (U32)litLength, (U32)matchLength, (U32)offBase); in ZSTD_storeSeq()
802 ZSTD_storeSeqOnly(seqStorePtr, litLength, offBase, matchLength); in ZSTD_storeSeq()
810 ZSTD_updateRep(U32 rep[ZSTD_REP_NUM], U32 const offBase, U32 const ll0) in ZSTD_updateRep() argument
812 if (OFFBASE_IS_OFFSET(offBase)) { /* full offset */ in ZSTD_updateRep()
815 rep[0] = OFFBASE_TO_OFFSET(offBase); in ZSTD_updateRep()
817 U32 const repCode = OFFBASE_TO_REPCODE(offBase) - 1 + ll0; in ZSTD_updateRep()
[all …]
H A Dzstd_compress.c2619 U32 const ofCode = ZSTD_highbit32(sequences[u].offBase); in ZSTD_seqToCodes()
3384 if (OFFBASE_IS_REPCODE(inSeqs[i].offBase)) { in ZSTD_copyBlockSequences()
3385 const U32 repcode = OFFBASE_TO_REPCODE(inSeqs[i].offBase); in ZSTD_copyBlockSequences()
3399 rawOffset = OFFBASE_TO_OFFSET(inSeqs[i].offBase); in ZSTD_copyBlockSequences()
3405 inSeqs[i].offBase, in ZSTD_copyBlockSequences()
3952 ZSTD_resolveRepcodeToRawOffset(const U32 rep[ZSTD_REP_NUM], const U32 offBase, const U32 ll0) in ZSTD_resolveRepcodeToRawOffset() argument
3954 U32 const adjustedRepCode = OFFBASE_TO_REPCODE(offBase) - 1 + ll0; /* [ 0 - 3 ] */ in ZSTD_resolveRepcodeToRawOffset()
3955 assert(OFFBASE_IS_REPCODE(offBase)); in ZSTD_resolveRepcodeToRawOffset()
3992 U32 const offBase = seq->offBase; in ZSTD_seqStore_resolveOffCodes() local
3993 assert(offBase > 0); in ZSTD_seqStore_resolveOffCodes()
[all …]
H A Dzstd_opt.c325 ZSTD_getMatchPrice(U32 const offBase, in ZSTD_getMatchPrice() argument
331 U32 const offCode = ZSTD_highbit32(offBase); in ZSTD_getMatchPrice()
359 U32 offBase, U32 matchLength) in ZSTD_updateStats() argument
376 { U32 const offCode = ZSTD_highbit32(offBase); in ZSTD_updateStats()
1182 U32 const offBase = matches[matchNb].off; in ZSTD_compressBlock_opt_generic() local
1185 … int const matchPrice = (int)ZSTD_getMatchPrice(offBase, pos, optStatePtr, optLevel); in ZSTD_compressBlock_opt_generic()
1190 opt[pos].off = offBase; in ZSTD_compressBlock_opt_generic()
1417 U32 const offBase = opt[storePos].off; in ZSTD_compressBlock_opt_generic() local
1429 ZSTD_updateStats(optStatePtr, llen, anchor, offBase, mlen); in ZSTD_compressBlock_opt_generic()
1430 ZSTD_storeSeq(seqStore, llen, anchor, iend, offBase, mlen); in ZSTD_compressBlock_opt_generic()
H A Dzstd_compress_superblock.c655 … ZSTD_updateRep(rep.rep, seq->offBase, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()