Searched refs:litLength (Results 1 – 10 of 10) sorted by relevance
/reactos/drivers/filesystems/btrfs/zstd/ |
H A D | zstd_ldm.c | 390 seq->litLength = (U32)(ip - anchor); in ZSTD_ldm_generateSequences_internal() 496 sequences->seq[prevSize].litLength += (U32)leftoverSize; in ZSTD_ldm_generateSequences() 509 if (srcSize <= seq->litLength) { in ZSTD_ldm_skipSequences() 511 seq->litLength -= (U32)srcSize; in ZSTD_ldm_skipSequences() 514 srcSize -= seq->litLength; in ZSTD_ldm_skipSequences() 515 seq->litLength = 0; in ZSTD_ldm_skipSequences() 522 seq[1].litLength += seq[0].matchLength; in ZSTD_ldm_skipSequences() 547 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence() 552 if (remaining <= sequence.litLength) { in maybeSplitSequence() 555 sequence.matchLength = remaining - sequence.litLength; in maybeSplitSequence() [all …]
|
H A D | zstd_compress_internal.h | 186 U32 litLength; member 298 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) in ZSTD_LLcode() argument 309 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode() 442 BYTE const* const litEnd = literals + litLength; in ZSTD_storeSeq() 448 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offCode); in ZSTD_storeSeq() 454 assert(seqStorePtr->lit + litLength <= seqStorePtr->litStart + seqStorePtr->maxNbLit); in ZSTD_storeSeq() 455 assert(literals + litLength <= litLimit); in ZSTD_storeSeq() 462 if (litLength > 16) { in ZSTD_storeSeq() 468 seqStorePtr->lit += litLength; in ZSTD_storeSeq() 471 if (litLength>0xFFFF) { in ZSTD_storeSeq() [all …]
|
H A D | zstd_internal.h | 329 U16 litLength; member 348 U32 litLength; member 359 seqLen.litLength = seq->litLength; in ZSTD_getSequenceLength() 363 seqLen.litLength += 0xFFFF; in ZSTD_getSequenceLength()
|
H A D | zstd_decompress_block.c | 554 size_t litLength; member 666 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceEnd() 668 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceEnd() 709 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() 713 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() 743 if (UNLIKELY(sequence.litLength > 16)) { in ZSTD_execSequence() 903 seq.litLength = llBase; in ZSTD_decodeSequence() 914 size_t const pos = seqState->pos + seq.litLength; in ZSTD_decodeSequence() 973 size_t const sequenceSize = seq.litLength + seq.matchLength; in ZSTD_assertValidSequence() 974 BYTE const* const oLitEnd = op + seq.litLength; in ZSTD_assertValidSequence() [all …]
|
H A D | zstd_opt.c | 215 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument 219 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 225 return (litLength*6) * BITCOST_MULTIPLIER; /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost() 228 { U32 price = litLength * optPtr->litSumBasePrice; in ZSTD_rawLiteralsCost() 230 for (u=0; u < litLength; u++) { in ZSTD_rawLiteralsCost() 242 if (optPtr->priceType == zop_predef) return WEIGHT(litLength, optLevel); in ZSTD_litLengthPrice() 245 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice() 289 U32 litLength, const BYTE* literals, in ZSTD_updateStats() argument 295 for (u=0; u < litLength; u++) in ZSTD_updateStats() 297 optPtr->litSum += litLength*ZSTD_LITFREQ_ADD; in ZSTD_updateStats() [all …]
|
H A D | zstd_compress_sequences.c | 291 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 318 (unsigned)sequences[n].litLength, in ZSTD_encodeSequences_body() 329 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
|
H A D | zstd_compress_superblock.c | 415 litLengthSum += seqLen.litLength; in ZSTD_seqDecompressedSize() 739 litSize += ZSTD_getSequenceLength(seqStorePtr, sequence).litLength; in ZSTD_compressSubBlock_multi() 814 … ZSTD_updateRep(rep.rep, seq->offset - 1, ZSTD_getSequenceLength(seqStorePtr, seq).litLength == 0); in ZSTD_compressSubBlock_multi()
|
H A D | zstd_lazy.c | 822 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_generic() local 823 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic() 1074 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_extDict_generic() local 1075 ZSTD_storeSeq(seqStore, litLength, anchor, iend, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
|
H A D | zstd_compress.c | 1939 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes() 2326 outSeqs[i].litLength = seqs[i].litLength; in ZSTD_copyBlockSequences() 2331 outSeqs[i].litLength += 0x10000; in ZSTD_copyBlockSequences() 2341 if (outSeqs[i].litLength == 0) { in ZSTD_copyBlockSequences() 2358 position += outSeqs[i].litLength; in ZSTD_copyBlockSequences()
|
H A D | zstd.h | 1112 unsigned int litLength; /* Literal length */ member
|