/freebsd/sys/contrib/zstd/lib/common/ |
H A D | zstd_internal.h | 107 #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 D | zstd_internal.h | 178 #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 D | zdict.c | 743 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 D | zstd_decompress_internal.h | 49 static const U32 ML_base[MaxML+1] = {
|
H A D | zstd_decompress.c | 1098 { 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 D | zstd_decompress_block.c | 539 MLtype, MaxML, MLFSELog, in ZSTD_decodeSeqHeaders()
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/ |
H A D | zstd_compress_superblock.c | 245 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 D | zstd_opt.c | 151 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 D | zstd_compress.c | 1112 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 D | zstd_compress_internal.h | 73 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
|
/freebsd/sys/contrib/zstd/lib/decompress/ |
H A D | zstd_decompress_internal.h | 49 static UNUSED_ATTR const U32 ML_base[MaxML+1] = {
|
H A D | zstd_decompress.c | 1378 { 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 D | zstd_decompress_block.c | 717 MLtype, MaxML, MLFSELog, in ZSTD_decodeSeqHeaders()
|
/freebsd/sys/contrib/zstd/lib/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 | 1435 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 D | zstd_compress_internal.h | 72 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
|
/freebsd/sys/contrib/zstd/lib/legacy/ |
H A D | zstd_v01.c | 1329 #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 D | zstd_v06.c | 497 #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 D | zstd_v05.c | 474 #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 D | zstd_v07.c | 2730 #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 D | zstd_v03.c | 2364 #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 D | zstd_v02.c | 2723 #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 D | zstd_v04.c | 371 #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()
|