Searched refs:offBase (Results 1 – 6 of 6) sorted by relevance
| /linux-6.15/lib/zstd/compress/ |
| H A D | zstd_lazy.c | 1583 size_t offBase = REPCODE1_TO_OFFBASE; in ZSTD_compressBlock_lazy_generic() local 1611 matchLength = ml2, start = ip, offBase = offbaseFound; in ZSTD_compressBlock_lazy_generic() 1708 if (OFFBASE_IS_OFFSET(offBase)) { in ZSTD_compressBlock_lazy_generic() 1748 …offBase = offset_2; offset_2 = offset_1; offset_1 = (U32)offBase; /* swap offset_2 <=> offset_1 … in ZSTD_compressBlock_lazy_generic() 1763 … offBase = offset_2; offset_2 = offset_1; offset_1 = (U32)offBase; /* swap repcodes */ in ZSTD_compressBlock_lazy_generic() 1981 size_t offBase = REPCODE1_TO_OFFBASE; in ZSTD_compressBlock_lazy_extDict_generic() local 2003 matchLength = ml2, start = ip, offBase = ofbCandidate; in ZSTD_compressBlock_lazy_extDict_generic() 2026 if (offBase) { in ZSTD_compressBlock_lazy_extDict_generic() 2058 if (offBase) { in ZSTD_compressBlock_lazy_extDict_generic() 2088 if (OFFBASE_IS_OFFSET(offBase)) { in ZSTD_compressBlock_lazy_extDict_generic() [all …]
|
| H A D | zstd_compress_sequences.c | 323 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 D | zstd_compress_internal.h | 84 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 D | zstd_compress.c | 3405 inSeqs[i].offBase, in ZSTD_copyBlockSequences() 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() 3994 if (OFFBASE_IS_REPCODE(offBase)) { in ZSTD_seqStore_resolveOffCodes() 6418 offBase = REPCODE1_TO_OFFBASE; in ZSTD_finalizeOffBase() 6420 offBase = REPCODE_TO_OFFBASE(2 - ll0); in ZSTD_finalizeOffBase() 6424 offBase = REPCODE3_TO_OFFBASE; in ZSTD_finalizeOffBase() 6426 return offBase; in ZSTD_finalizeOffBase() 6462 U32 offBase; in ZSTD_transferSequences_wBlockDelim() local [all …]
|
| H A D | zstd_opt.c | 325 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 D | zstd_compress_superblock.c | 655 … ZSTD_updateRep(rep.rep, seq->offBase, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()
|