Home
last modified time | relevance | path

Searched refs:MaxML (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/contrib/zstd/lib/common/
H A Dzstd_internal.h107 #define MaxML 52 macro
111 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */
119 #define ZSTD_MAX_FSE_HEADERS_SIZE (((MaxML + 1) * MLFSELog + (MaxLL + 1) * LLFSELog + (MaxOff + 1) …
138 static UNUSED_ATTR const U8 ML_bits[MaxML+1] = {
147 static UNUSED_ATTR const S16 ML_defaultNorm[MaxML+1] = {
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dzstd_internal.h178 #define MaxML 52 macro
182 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */
201 static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0,
208 static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2,
/freebsd/sys/contrib/zstd/lib/dictBuilder/
H A Dzdict.c743 unsigned matchLengthCount[MaxML+1]; in ZDICT_analyzeEntropy()
744 short matchLengthNCount[MaxML+1]; in ZDICT_analyzeEntropy()
763 for (u=0; u<=MaxML; u++) matchLengthCount[u] = 1; in ZDICT_analyzeEntropy()
828 total=0; for (u=0; u<=MaxML; u++) total+=matchLengthCount[u]; in ZDICT_analyzeEntropy()
829 …errorCode = FSE_normalizeCount(matchLengthNCount, mlLog, matchLengthCount, total, MaxML, /* useLow… in ZDICT_analyzeEntropy()
869 { size_t const mhSize = FSE_writeNCount(dstPtr, maxDstSize, matchLengthNCount, MaxML, mlLog); in ZDICT_analyzeEntropy()
/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_decompress_internal.h49 static const U32 ML_base[MaxML+1] = {
H A Dzstd_decompress.c1098 { short matchlengthNCount[MaxML+1]; in ZSTD_loadDEntropy()
1099 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadDEntropy()
1102 RETURN_ERROR_IF(matchlengthMaxValue > MaxML, dictionary_corrupted, ""); in ZSTD_loadDEntropy()
H A Dzstd_decompress_block.c539 MLtype, MaxML, MLFSELog, in ZSTD_decodeSeqHeaders()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress_superblock.c245 unsigned max = MaxML; in ZSTD_buildSuperBlockEntropy_sequences()
256 … countWksp, max, mlCodeTable, nbSeq, ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_buildSuperBlockEntropy_sequences()
656 … cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, MaxML, in ZSTD_estimateSubBlockSize_sequences()
658 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_estimateSubBlockSize_sequences()
H A Dzstd_opt.c151 for (ml=0; ml<=MaxML; ml++) { in ZSTD_rescaleFreqs()
187 for (ml=0; ml<=MaxML; ml++) in ZSTD_rescaleFreqs()
190 optPtr->matchLengthSum = MaxML+1; in ZSTD_rescaleFreqs()
205 optPtr->matchLengthSum = ZSTD_downscaleStat(optPtr->matchLengthFreq, MaxML, 0); in ZSTD_rescaleFreqs()
1097 optPtr->matchLengthSum = ZSTD_upscaleStat(optPtr->matchLengthFreq, MaxML, 0); in ZSTD_upscaleStats()
H A Dzstd_compress.c1112 ZSTD_cwksp_alloc_size((MaxML+1) * sizeof(U32)) in ZSTD_sizeof_matchState()
1390 … ms->opt.matchLengthFreq = (unsigned*)ZSTD_cwksp_reserve_aligned(ws, (MaxML+1) * sizeof(unsigned)); in ZSTD_reset_matchState()
1948 mlCodeTable[seqStorePtr->longLengthPos] = MaxML; in ZSTD_seqToCodes()
2091 { unsigned max = MaxML; in ZSTD_compressSequences_internal()
2106 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_compressSequences_internal()
2940 { short matchlengthNCount[MaxML+1]; in ZSTD_loadCEntropy()
2941 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadCEntropy()
2946 FORWARD_IF_ERROR( ZSTD_checkDictNCount(matchlengthNCount, matchlengthMaxValue, MaxML), ""); in ZSTD_loadCEntropy()
H A Dzstd_compress_internal.h73 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_decompress_internal.h49 static UNUSED_ATTR const U32 ML_base[MaxML+1] = {
H A Dzstd_decompress.c1378 { short matchlengthNCount[MaxML+1]; in ZSTD_loadDEntropy()
1379 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadDEntropy()
1382 RETURN_ERROR_IF(matchlengthMaxValue > MaxML, dictionary_corrupted, ""); in ZSTD_loadDEntropy()
H A Dzstd_decompress_block.c717 MLtype, MaxML, MLFSELog, in ZSTD_decodeSeqHeaders()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress_superblock.c380 … cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, MaxML, in ZSTD_estimateSubBlockSize_sequences()
382 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_estimateSubBlockSize_sequences()
H A Dzstd_opt.c171 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 Dzstd_compress.c1435 ZSTD_cwksp_aligned_alloc_size((MaxML+1) * sizeof(U32)) in ZSTD_sizeof_matchState()
1772 … ms->opt.matchLengthFreq = (unsigned*)ZSTD_cwksp_reserve_aligned(ws, (MaxML+1) * sizeof(unsigned)); in ZSTD_reset_matchState()
2407 mlCodeTable[seqStorePtr->longLengthPos] = MaxML; in ZSTD_seqToCodes()
2535 { unsigned max = MaxML; in ZSTD_buildSequencesStatistics()
2550 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_buildSequencesStatistics()
3319 …eqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->mlType, mlCodeTable, nbSeq, MaxML, in ZSTD_estimateBlockSize_sequences()
3321 ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_estimateBlockSize_sequences()
4353 { short matchlengthNCount[MaxML+1]; in ZSTD_loadCEntropy()
4354 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadCEntropy()
4363 ….fse.matchlength_repeatMode = ZSTD_dictNCountRepeat(matchlengthNCount, matchlengthMaxValue, MaxML); in ZSTD_loadCEntropy()
H A Dzstd_compress_internal.h72 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c1329 #define MaxML ((1<<MLbits )-1) macro
1337 #define MaxSeq MAX(MaxLL, MaxML)
1612 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL and MaxOff */ in ZSTDv01_decodeSeqHeaders()
1661 { U32 max = MaxML; in ZSTDv01_decodeSeqHeaders()
1731 if (matchLength == MaxML) in ZSTD_decodeSequence()
H A Dzstd_v06.c497 #define MaxML 52 macro
500 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */
520 static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
524 static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
3260 …{ size_t const bhSize = ZSTDv06_buildSeqTable(DTableML, MLtype, MaxML, MLFSELog, ip, iend-ip, ML… in ZSTDv06_decodeSeqHeaders()
3302 static const U32 ML_base[MaxML+1] = { in ZSTDv06_decodeSequence()
3827 { short matchlengthNCount[MaxML+1]; in ZSTDv06_loadEntropy()
3828 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTDv06_loadEntropy()
H A Dzstd_v05.c474 #define MaxML ((1<<MLbits) - 1) macro
480 #define MaxSeq MAX(MaxLL, MaxML)
3044 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL >= MaxOff */ in ZSTDv05_decodeSeqHeaders()
3111 { unsigned max = MaxML; in ZSTDv05_decodeSeqHeaders()
3190 if (matchLength == MaxML) { in ZSTDv05_decodeSequence()
3671 short matchlengthNCount[MaxML+1]; in ZSTDv05_loadEntropy()
3672 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTDv05_loadEntropy()
H A Dzstd_v07.c2730 #define MaxML 52 macro
2733 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */
2753 static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2757 static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1,
3490 …{ size_t const mlhSize = ZSTDv07_buildSeqTable(DTableML, MLtype, MaxML, MLFSELog, ip, iend-ip, M… in ZSTDv07_decodeSeqHeaders()
3532 static const U32 ML_base[MaxML+1] = { in ZSTDv07_decodeSequence()
4113 { short matchlengthNCount[MaxML+1]; in ZSTDv07_loadEntropy()
4114 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTDv07_loadEntropy()
H A Dzstd_v03.c2364 #define MaxML ((1<<MLbits )-1) macro
2372 #define MaxSeq MAX(MaxLL, MaxML)
2601 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL and MaxOff */ in ZSTD_decodeSeqHeaders()
2651 { U32 max = MaxML; in ZSTD_decodeSeqHeaders()
2723 if (matchLength == MaxML) in ZSTD_decodeSequence()
H A Dzstd_v02.c2723 #define MaxML ((1<<MLbits )-1) macro
2731 #define MaxSeq MAX(MaxLL, MaxML)
2960 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL and MaxOff */ in ZSTD_decodeSeqHeaders()
3010 { U32 max = MaxML; in ZSTD_decodeSeqHeaders()
3082 if (matchLength == MaxML) in ZSTD_decodeSequence()
H A Dzstd_v04.c371 #define MaxML ((1<<MLbits) - 1) macro
377 #define MaxSeq MAX(MaxLL, MaxML)
2727 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL >= MaxOff */ in ZSTD_decodeSeqHeaders()
2777 { U32 max = MaxML; in ZSTD_decodeSeqHeaders()
2846 if (matchLength == MaxML) { in ZSTD_decodeSequence()