Searched refs:litLength (Results 1 – 5 of 5) sorted by relevance
/lib/zstd/ |
D | zstd_opt.h | 101 FORCE_INLINE U32 ZSTD_getLiteralPrice(seqStore_t *ssPtr, U32 litLength, const BYTE *literals) in ZSTD_getLiteralPrice() argument 106 return ZSTD_highbit32((U32)litLength + 1) + (litLength * 6); in ZSTD_getLiteralPrice() 108 if (litLength == 0) in ZSTD_getLiteralPrice() 113 U32 const additional = litLength - ssPtr->cachedLitLength; in ZSTD_getLiteralPrice() 119 ssPtr->cachedLitLength = litLength; in ZSTD_getLiteralPrice() 121 price = litLength * ssPtr->log2litSum; in ZSTD_getLiteralPrice() 122 for (u = 0; u < litLength; u++) in ZSTD_getLiteralPrice() 125 if (litLength >= 12) { in ZSTD_getLiteralPrice() 128 ssPtr->cachedLitLength = litLength; in ZSTD_getLiteralPrice() 135 …const BYTE llCode = (litLength > 63) ? (BYTE)ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[li… in ZSTD_getLiteralPrice() [all …]
|
D | decompress.c | 862 size_t litLength; member 883 BYTE *const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceLast7() 884 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceLast7() 887 const BYTE *const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceLast7() 990 …seq.litLength = LL_base[llCode] + ((llCode > 15) ? BIT_readBitsFast(&seqState->DStream, llBits) : … in ZSTD_decodeSequence() 1010 BYTE *const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() 1011 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequence() 1014 const BYTE *const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() 1027 if (sequence.litLength > 8) in ZSTD_execSequence() 1029 …sequence.litLength - 8); /* note : since oLitEnd <= oend-WILDCOPY_OVERLENGTH, no risk of overwrite… in ZSTD_execSequence() [all …]
|
D | zstd_internal.h | 184 U16 litLength; member
|
D | compress.c | 574 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes() 762 BIT_addBits(&blockStream, sequences[nbSeq - 1].litLength, LL_bits[llCodeTable[nbSeq - 1]]); in ZSTD_compressSequences_internal() 798 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_compressSequences_internal() 861 ZSTD_STATIC void ZSTD_storeSeq(seqStore_t *seqStorePtr, size_t litLength, const void *literals, U32… in ZSTD_storeSeq() argument 864 ZSTD_wildcopy(seqStorePtr->lit, literals, litLength); in ZSTD_storeSeq() 865 seqStorePtr->lit += litLength; in ZSTD_storeSeq() 868 if (litLength > 0xFFFF) { in ZSTD_storeSeq() 872 seqStorePtr->sequences[0].litLength = (U16)litLength; in ZSTD_storeSeq() 2018 size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_generic() local 2019 ZSTD_storeSeq(seqStorePtr, litLength, anchor, (U32)offset, matchLength - MINMATCH); in ZSTD_compressBlock_lazy_generic() [all …]
|
/lib/lz4/ |
D | lz4_compress.c | 302 unsigned const int litLength = (unsigned int)(ip - anchor); in LZ4_compress_generic() local 308 (unlikely(op + litLength + in LZ4_compress_generic() 310 (litLength / 255) > olimit))) in LZ4_compress_generic() 313 if (litLength >= RUN_MASK) { in LZ4_compress_generic() 314 int len = (int)litLength - RUN_MASK; in LZ4_compress_generic() 322 *token = (BYTE)(litLength << ML_BITS); in LZ4_compress_generic() 325 LZ4_wildCopy(op, anchor, op + litLength); in LZ4_compress_generic() 326 op += litLength; in LZ4_compress_generic() 612 unsigned int litLength = (unsigned int)(ip - anchor); in LZ4_compress_destSize_generic() local 615 if (op + ((litLength + 240) / 255) in LZ4_compress_destSize_generic() [all …]
|