/kernel/linux/linux-5.10/lib/zstd/ |
H A D | zstd_internal.h | 102 #define MaxML 52 macro 105 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */ 115 static const U32 ML_bits[MaxML + 1] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 117 static const S16 ML_defaultNorm[MaxML + 1] = {1, 4, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
H A D | compress.c | 85 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)]; 102 ((MaxML + 1) + (MaxLL + 1) + (MaxOff + 1) + (1 << Litbits)) * sizeof(U32) + (ZSTD_OPT_NUM + 1) * (sizeof(ZSTD_match_t) + sizeof(ZSTD_optimal_t)); in ZSTD_CCtxWorkspaceBound() 265 size_t const optSpace = ((MaxML + 1) + (MaxLL + 1) + (MaxOff + 1) + (1 << Litbits)) * sizeof(U32) + in ZSTD_resetCCtx_advanced() 310 zc->seqStore.offCodeFreq = zc->seqStore.matchLengthFreq + (MaxML + 1); in ZSTD_resetCCtx_advanced() 583 mlCodeTable[seqStorePtr->longLengthPos] = MaxML; in ZSTD_seqToCodes() 716 U32 max = MaxML; in ZSTD_compressSequences_internal() 725 FSE_buildCTable_wksp(CTable_MatchLength, ML_defaultNorm, MaxML, ML_defaultNormLog, workspace, workspaceSize); in ZSTD_compressSequences_internal() 2658 short matchlengthNCount[MaxML + 1]; in ZSTD_loadZstdDictionary() 2659 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadZstdDictionary() 2666 CHECK_F(ZSTD_checkDictNCount(matchlengthNCount, matchlengthMaxValue, MaxML)); in ZSTD_loadZstdDictionary() [all...] |
H A D | decompress.c | 850 size_t const mlhSize = ZSTD_buildSeqTable(dctx->entropy.MLTable, &dctx->MLTptr, MLtype, MaxML, MLFSELog, ip, iend - ip, in ZSTD_decodeSeqHeaders() 947 static const U32 ML_base[MaxML + 1] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, in ZSTD_decodeSequence() 1179 static const U32 ML_base[MaxML + 1] = {3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, in ZSTD_decodeSequenceLong_generic() 1903 short matchlengthNCount[MaxML + 1]; in ZSTD_loadEntropy() 1904 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadEntropy()
|
H A D | zstd_opt.h | 57 ssPtr->matchLengthSum = MaxML + 1; in ZSTD_rescaleFreqs() 67 for (u = 0; u <= MaxML; u++) in ZSTD_rescaleFreqs() 86 for (u = 0; u <= MaxML; u++) { in ZSTD_rescaleFreqs()
|
/kernel/linux/linux-6.6/lib/zstd/common/ |
H A D | zstd_internal.h | 97 #define MaxML 52 macro 101 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */ 109 #define ZSTD_MAX_FSE_HEADERS_SIZE (((MaxML + 1) * MLFSELog + (MaxLL + 1) * LLFSELog + (MaxOff + 1) * OffFSELog + 7) / 8) 128 static UNUSED_ATTR const U8 ML_bits[MaxML+1] = { 137 static UNUSED_ATTR const S16 ML_defaultNorm[MaxML+1] = {
|
/kernel/linux/linux-6.6/lib/zstd/decompress/ |
H A D | zstd_decompress_internal.h | 23 #include "../common/zstd_internal.h" /* constants : MaxLL, MaxML, MaxOff, LLFSELog, etc. */ 49 static UNUSED_ATTR const U32 ML_base[MaxML+1] = {
|
H A D | zstd_decompress.c | 1331 { short matchlengthNCount[MaxML+1]; in ZSTD_loadDEntropy() 1332 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadDEntropy() 1335 RETURN_ERROR_IF(matchlengthMaxValue > MaxML, dictionary_corrupted, ""); in ZSTD_loadDEntropy()
|
H A D | zstd_decompress_block.c | 717 MLtype, MaxML, MLFSELog, in ZSTD_decodeSeqHeaders()
|
/kernel/linux/linux-6.6/lib/zstd/compress/ |
H A D | zstd_compress_superblock.c | 380 cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, MaxML, in ZSTD_estimateSubBlockSize_sequences() 382 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_estimateSubBlockSize_sequences()
|
H A D | zstd_opt.c | 171 for (ml=0; ml<=MaxML; ml++) { in ZSTD_rescaleFreqs() 212 for (ml=0; ml<=MaxML; ml++) in ZSTD_rescaleFreqs() 215 optPtr->matchLengthSum = MaxML+1; in ZSTD_rescaleFreqs() 235 optPtr->matchLengthSum = ZSTD_scaleStats(optPtr->matchLengthFreq, MaxML, 11); in ZSTD_rescaleFreqs()
|
H A D | zstd_compress.c | 1366 ZSTD_cwksp_aligned_alloc_size((MaxML+1) * sizeof(U32)) in ZSTD_sizeof_matchState() 1693 ms->opt.matchLengthFreq = (unsigned*)ZSTD_cwksp_reserve_aligned(ws, (MaxML+1) * sizeof(unsigned)); in ZSTD_reset_matchState() 2316 mlCodeTable[seqStorePtr->longLengthPos] = MaxML; in ZSTD_seqToCodes() 2444 { unsigned max = MaxML; in ZSTD_buildSequencesStatistics() 2459 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_buildSequencesStatistics() 3228 cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, nbSeq, MaxML, in ZSTD_estimateBlockSize_sequences() 3230 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_estimateBlockSize_sequences() 4262 { short matchlengthNCount[MaxML+1]; in ZSTD_loadCEntropy() 4263 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadCEntropy() 4272 bs->entropy.fse.matchlength_repeatMode = ZSTD_dictNCountRepeat(matchlengthNCount, matchlengthMaxValue, MaxML); in ZSTD_loadCEntropy() [all...] |
H A D | zstd_compress_internal.h | 66 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)]; 161 unsigned* matchLengthFreq; /* table of matchLength statistics, of size (MaxML+1) */
|