| /freebsd-12-stable/sys/contrib/zstd/lib/compress/ |
| D | zstd_compress_internal.h | 156 U32 litLength; member 245 MEM_STATIC U32 ZSTD_LLcode(U32 litLength) in ZSTD_LLcode() argument 256 return (litLength > 63) ? ZSTD_highbit32(litLength) + LL_deltaCode : LL_Code[litLength]; in ZSTD_LLcode() 281 MEM_STATIC void ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const void* literals, U32 … in ZSTD_storeSeq() argument 288 pos, (U32)litLength, (U32)mlBase+MINMATCH, (U32)offsetCode); in ZSTD_storeSeq() 292 assert(seqStorePtr->lit + litLength <= seqStorePtr->litStart + 128 KB); in ZSTD_storeSeq() 293 ZSTD_wildcopy(seqStorePtr->lit, literals, litLength); in ZSTD_storeSeq() 294 seqStorePtr->lit += litLength; in ZSTD_storeSeq() 297 if (litLength>0xFFFF) { in ZSTD_storeSeq() 302 seqStorePtr->sequences[0].litLength = (U16)litLength; in ZSTD_storeSeq()
|
| D | zstd_ldm.c | 425 seq->litLength = (U32)(ip - anchor); in ZSTD_ldm_generateSequences_internal() 523 sequences->seq[prevSize].litLength += (U32)leftoverSize; in ZSTD_ldm_generateSequences() 536 if (srcSize <= seq->litLength) { in ZSTD_ldm_skipSequences() 538 seq->litLength -= (U32)srcSize; in ZSTD_ldm_skipSequences() 541 srcSize -= seq->litLength; in ZSTD_ldm_skipSequences() 542 seq->litLength = 0; in ZSTD_ldm_skipSequences() 549 seq[1].litLength += seq[0].matchLength; in ZSTD_ldm_skipSequences() 574 if (remaining >= sequence.litLength + sequence.matchLength) { in maybeSplitSequence() 579 if (remaining <= sequence.litLength) { in maybeSplitSequence() 581 } else if (remaining < sequence.litLength + sequence.matchLength) { in maybeSplitSequence() [all …]
|
| D | zstd_opt.c | 94 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument 97 if (optPtr->staticPrices) return (litLength*6); /* 6 bit per literal - no statistic used */ in ZSTD_rawLiteralsCost() 98 if (litLength == 0) return 0; in ZSTD_rawLiteralsCost() 102 U32 cost = litLength * optPtr->log2litSum; in ZSTD_rawLiteralsCost() 103 for (u=0; u < litLength; u++) in ZSTD_rawLiteralsCost() 111 static U32 ZSTD_litLengthPrice(U32 const litLength, const optState_t* const optPtr) in ZSTD_litLengthPrice() argument 113 if (optPtr->staticPrices) return ZSTD_highbit32((U32)litLength+1); in ZSTD_litLengthPrice() 116 { U32 const llCode = ZSTD_LLcode(litLength); in ZSTD_litLengthPrice() 125 static U32 ZSTD_fullLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_fullLiteralsCost() argument 128 return ZSTD_rawLiteralsCost(literals, litLength, optPtr) in ZSTD_fullLiteralsCost() [all …]
|
| D | zstd_lazy.c | 570 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_generic() local 571 ZSTD_storeSeq(seqStore, litLength, anchor, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_generic() 762 { size_t const litLength = start - anchor; in ZSTD_compressBlock_lazy_extDict_generic() local 763 ZSTD_storeSeq(seqStore, litLength, anchor, (U32)offset, matchLength-MINMATCH); in ZSTD_compressBlock_lazy_extDict_generic()
|
| D | zstd_compress.c | 1455 U32 const llv = sequences[u].litLength; in ZSTD_seqToCodes() 1573 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in ZSTD_encodeSequences_body() 1600 sequences[n].litLength, in ZSTD_encodeSequences_body() 1611 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in ZSTD_encodeSequences_body()
|
| /freebsd-12-stable/contrib/subversion/subversion/libsvn_subr/lz4/ |
| D | lz4.c | 562 { unsigned const litLength = (unsigned)(ip - anchor); in LZ4_compress_generic() local 565 (unlikely(op + litLength + (2 + 1 + LASTLITERALS) + (litLength/255) > olimit))) in LZ4_compress_generic() 567 if (litLength >= RUN_MASK) { in LZ4_compress_generic() 568 int len = (int)litLength-RUN_MASK; in LZ4_compress_generic() 573 else *token = (BYTE)(litLength<<ML_BITS); in LZ4_compress_generic() 576 LZ4_wildCopy(op, anchor, op+litLength); in LZ4_compress_generic() 577 op+=litLength; in LZ4_compress_generic() 797 { unsigned litLength = (unsigned)(ip - anchor); in LZ4_compress_destSize_generic() local 799 if (op + ((litLength+240)/255) + litLength > oMaxLit) { in LZ4_compress_destSize_generic() 804 if (litLength>=RUN_MASK) { in LZ4_compress_destSize_generic() [all …]
|
| /freebsd-12-stable/sys/contrib/zstd/lib/legacy/ |
| D | zstd_v01.c | 1417 BYTE* litLength; member 1668 size_t litLength; member 1686 size_t litLength; in ZSTD_decodeSequence() local 1694 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence() 1695 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence() 1697 if (litLength == MaxLL) in ZSTD_decodeSequence() 1700 if (add < 255) litLength += add; in ZSTD_decodeSequence() 1705 …litLength = ZSTD_readLE32(dumps) & 0xFFFFFF; /* no pb : dumps is always followed by seq tables > … in ZSTD_decodeSequence() 1741 seq->litLength = litLength; in ZSTD_decodeSequence() 1756 const size_t litLength = sequence.litLength; in ZSTD_execSequence() local [all …]
|
| D | zstd_v05.c | 529 BYTE* litLength; member 3118 size_t litLength; member 3137 size_t litLength; in ZSTDv05_decodeSequence() local 3145 litLength = FSEv05_peakSymbol(&(seqState->stateLL)); in ZSTDv05_decodeSequence() 3146 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTDv05_decodeSequence() 3147 if (litLength == MaxLL) { in ZSTDv05_decodeSequence() 3149 if (add < 255) litLength += add; in ZSTDv05_decodeSequence() 3151 …litLength = MEM_readLE32(dumps) & 0xFFFFFF; /* no risk : dumps is always followed by seq tables >… in ZSTDv05_decodeSequence() 3152 if (litLength&1) litLength>>=1, dumps += 3; in ZSTDv05_decodeSequence() 3153 else litLength = (U16)(litLength)>>1, dumps += 2; in ZSTDv05_decodeSequence() [all …]
|
| D | zstd_v03.c | 2409 BYTE* litLength; member 2648 size_t litLength; member 2666 size_t litLength; in ZSTD_decodeSequence() local 2674 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence() 2675 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence() 2677 if (litLength == MaxLL) in ZSTD_decodeSequence() 2680 if (add < 255) litLength += add; in ZSTD_decodeSequence() 2683 …litLength = MEM_readLE32(dumps) & 0xFFFFFF; /* no pb : dumps is always followed by seq tables > 1… in ZSTD_decodeSequence() 2721 seq->litLength = litLength; in ZSTD_decodeSequence() 2736 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() [all …]
|
| D | zstd_v02.c | 2768 BYTE* litLength; member 3007 size_t litLength; member 3025 size_t litLength; in ZSTD_decodeSequence() local 3033 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence() 3034 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence() 3036 if (litLength == MaxLL) in ZSTD_decodeSequence() 3039 if (add < 255) litLength += add; in ZSTD_decodeSequence() 3042 …litLength = MEM_readLE32(dumps) & 0xFFFFFF; /* no pb : dumps is always followed by seq tables > 1… in ZSTD_decodeSequence() 3080 seq->litLength = litLength; in ZSTD_decodeSequence() 3095 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() [all …]
|
| D | zstd_v04.c | 2838 size_t litLength; member 2856 size_t litLength; in ZSTD_decodeSequence() local 2864 litLength = FSE_decodeSymbol(&(seqState->stateLL), &(seqState->DStream)); in ZSTD_decodeSequence() 2865 prevOffset = litLength ? seq->offset : seqState->prevOffset; in ZSTD_decodeSequence() 2866 if (litLength == MaxLL) { in ZSTD_decodeSequence() 2868 if (add < 255) litLength += add; in ZSTD_decodeSequence() 2870 litLength = dumps[0] + (dumps[1]<<8) + (dumps[2]<<16); in ZSTD_decodeSequence() 2873 …if (dumps > de) { litLength = MaxLL+255; } /* late correction, to avoid using uninitialized memor… in ZSTD_decodeSequence() 2890 if (offsetCode | !litLength) seqState->prevOffset = seq->offset; /* cmove */ in ZSTD_decodeSequence() 2908 seq->litLength = litLength; in ZSTD_decodeSequence() [all …]
|
| D | zstd_v06.c | 579 U16* litLength; member 3270 size_t litLength; member 3349 …seq->litLength = LL_base[llCode] + ((llCode>15) ? BITv06_readBits(&(seqState->DStream), llBits) : … in ZSTDv06_decodeSequence() 3366 BYTE* const oLitEnd = op + sequence.litLength; in ZSTDv06_execSequence() 3367 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTDv06_execSequence() 3370 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTDv06_execSequence() 3379 …ZSTDv06_wildcopy(op, *litPtr, sequence.litLength); /* note : oLitEnd <= oend-8 : no risk of over… in ZSTDv06_execSequence() 3488 … pos, (U32)sequence.litLength, (U32)sequence.matchLength, (U32)sequence.offset); in ZSTDv06_decompressSequences()
|
| D | zstd_v07.c | 2814 U16* litLength; member 3496 size_t litLength; member 3570 …seq.litLength = LL_base[llCode] + ((llCode>15) ? BITv07_readBits(&(seqState->DStream), llBits) : 0… in ZSTDv07_decodeSequence() 3590 BYTE* const oLitEnd = op + sequence.litLength; in ZSTDv07_execSequence() 3591 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTDv07_execSequence() 3594 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTDv07_execSequence() 3602 …ZSTDv07_wildcopy(op, *litPtr, sequence.litLength); /* note : since oLitEnd <= oend-WILDCOPY_OVER… in ZSTDv07_execSequence()
|
| /freebsd-12-stable/sys/contrib/zstd/lib/decompress/ |
| D | zstd_decompress.c | 1004 size_t litLength; member 1033 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceLast7() 1034 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequenceLast7() 1037 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequenceLast7() 1080 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequence() 1081 size_t const sequenceLength = sequence.litLength + sequence.matchLength; in ZSTD_execSequence() 1084 const BYTE* const iLitEnd = *litPtr + sequence.litLength; in ZSTD_execSequence() 1094 if (sequence.litLength > 8) in ZSTD_execSequence() 1095 …ZSTD_wildcopy(op+8, (*litPtr)+8, sequence.litLength - 8); /* note : since oLitEnd <= oend-WILDCO… in ZSTD_execSequence() 1161 BYTE* const oLitEnd = op + sequence.litLength; in ZSTD_execSequenceLong() [all …]
|
| /freebsd-12-stable/sys/contrib/zstd/lib/common/ |
| D | zstd_internal.h | 218 U16 litLength; member
|
| /freebsd-12-stable/sys/contrib/zstd/tests/ |
| D | decodecorpus.c | 941 BIT_addBits(&blockStream, sequences[nbSeq-1].litLength, LL_bits[llCodeTable[nbSeq-1]]); in writeSequences() 963 BIT_addBits(&blockStream, sequences[n].litLength, llBits); in writeSequences()
|