| /freebsd-12.1/sys/contrib/zstd/lib/common/ |
| H A D | zstd_internal.h | 135 #define MaxML 52 macro 139 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */ 158 static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0, 165 static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2,
|
| /freebsd-12.1/sys/contrib/zstd/lib/dictBuilder/ |
| H A D | zdict.c | 694 U32 matchLengthCount[MaxML+1]; in ZDICT_analyzeEntropy() 695 short matchLengthNCount[MaxML+1]; in ZDICT_analyzeEntropy() 722 for (u=0; u<=MaxML; u++) matchLengthCount[u] = 1; in ZDICT_analyzeEntropy() 777 total=0; for (u=0; u<=MaxML; u++) total+=matchLengthCount[u]; in ZDICT_analyzeEntropy() 778 errorCode = FSE_normalizeCount(matchLengthNCount, mlLog, matchLengthCount, total, MaxML); in ZDICT_analyzeEntropy() 818 { size_t const mhSize = FSE_writeNCount(dstPtr, maxDstSize, matchLengthNCount, MaxML, mlLog); in ZDICT_analyzeEntropy()
|
| /freebsd-12.1/sys/contrib/zstd/lib/legacy/ |
| H A D | zstd_v01.c | 1320 #define MaxML ((1<<MLbits )-1) macro 1328 #define MaxSeq MAX(MaxLL, MaxML) 1606 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL and MaxOff */ in ZSTDv01_decodeSeqHeaders() 1655 { U32 max = MaxML; in ZSTDv01_decodeSeqHeaders() 1725 if (matchLength == MaxML) in ZSTD_decodeSequence()
|
| H A D | zstd_v06.c | 496 #define MaxML 52 macro 499 #define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */ 517 static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 521 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() 3799 { short matchlengthNCount[MaxML+1]; in ZSTDv06_loadEntropy() 3800 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTDv06_loadEntropy()
|
| H A D | zstd_v05.c | 473 #define MaxML ((1<<MLbits) - 1) macro 479 #define MaxSeq MAX(MaxLL, MaxML) 3038 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL >= MaxOff */ in ZSTDv05_decodeSeqHeaders() 3105 { U32 max = MaxML; in ZSTDv05_decodeSeqHeaders() 3181 if (matchLength == MaxML) { in ZSTDv05_decodeSequence() 3189 …if (dumps > de) { matchLength = MaxML+255; } /* late correction, to avoid using uninitialized mem… in ZSTDv05_decodeSequence() 3634 short matchlengthNCount[MaxML+1]; in ZSTDv05_loadEntropy() 3635 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 */ 2751 static const U32 ML_bits[MaxML+1] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2755 static const S16 ML_defaultNorm[MaxML+1] = { 1, 4, 3, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 3486 …{ size_t const mlhSize = ZSTDv07_buildSeqTable(DTableML, MLtype, MaxML, MLFSELog, ip, iend-ip, M… in ZSTDv07_decodeSeqHeaders() 3528 static const U32 ML_base[MaxML+1] = { in ZSTDv07_decodeSequence() 4076 { short matchlengthNCount[MaxML+1]; in ZSTDv07_loadEntropy() 4077 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTDv07_loadEntropy()
|
| H A D | zstd_v03.c | 2353 #define MaxML ((1<<MLbits )-1) macro 2361 #define MaxSeq MAX(MaxLL, MaxML) 2585 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL and MaxOff */ in ZSTD_decodeSeqHeaders() 2635 { U32 max = MaxML; in ZSTD_decodeSeqHeaders() 2707 if (matchLength == MaxML) in ZSTD_decodeSequence()
|
| H A D | zstd_v04.c | 420 #define MaxML ((1<<MLbits) - 1) macro 426 #define MaxSeq MAX(MaxLL, MaxML) 2775 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL >= MaxOff */ in ZSTD_decodeSeqHeaders() 2825 { U32 max = MaxML; in ZSTD_decodeSeqHeaders() 2895 if (matchLength == MaxML) { in ZSTD_decodeSequence() 2902 …if (dumps > de) { matchLength = MaxML+255; } /* late correction, to avoid using uninitialized mem… in ZSTD_decodeSequence()
|
| H A D | zstd_v02.c | 2712 #define MaxML ((1<<MLbits )-1) macro 2720 #define MaxSeq MAX(MaxLL, MaxML) 2944 S16 norm[MaxML+1]; /* assumption : MaxML >= MaxLL and MaxOff */ in ZSTD_decodeSeqHeaders() 2994 { U32 max = MaxML; in ZSTD_decodeSeqHeaders() 3066 if (matchLength == MaxML) in ZSTD_decodeSequence()
|
| /freebsd-12.1/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_opt.c | 55 for (u=0; u<=MaxML; u++) in ZSTD_rescaleFreqs() 57 optPtr->matchLengthSum = MaxML+1; in ZSTD_rescaleFreqs() 76 for (u=0; u<=MaxML; u++) { in ZSTD_rescaleFreqs()
|
| H A D | zstd_compress.c | 676 … size_t const optPotentialSpace = ((MaxML+1) + (MaxLL+1) + (MaxOff+1) + (1<<Litbits)) * sizeof(U32) in ZSTD_sizeof_matchState() 923 ms->opt.offCodeFreq = ms->opt.matchLengthFreq + (MaxML+1); in ZSTD_reset_matchState() 1464 mlCodeTable[seqStorePtr->longLengthPos] = MaxML; in ZSTD_seqToCodes() 1793 { U32 max = MaxML; in ZSTD_compressSequences_internal() 1799 count, max, mlCodeTable, nbSeq, ML_defaultNorm, ML_defaultNormLog, MaxML, in ZSTD_compressSequences_internal() 2290 { short matchlengthNCount[MaxML+1]; in ZSTD_loadZstdDictionary() 2291 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadZstdDictionary() 2296 CHECK_F( ZSTD_checkDictNCount(matchlengthNCount, matchlengthMaxValue, MaxML)); in ZSTD_loadZstdDictionary()
|
| H A D | zstd_compress_internal.h | 58 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
|
| /freebsd-12.1/sys/contrib/zstd/lib/decompress/ |
| H A D | zstd_decompress.c | 927 static const U32 ML_base[MaxML+1] = { 990 MLtype, MaxML, MLFSELog, in ZSTD_decodeSeqHeaders() 2200 { short matchlengthNCount[MaxML+1]; in ZSTD_loadEntropy() 2201 unsigned matchlengthMaxValue = MaxML, matchlengthLog; in ZSTD_loadEntropy() 2204 if (matchlengthMaxValue > MaxML) return ERROR(dictionary_corrupted); in ZSTD_loadEntropy()
|
| /freebsd-12.1/sys/contrib/zstd/tests/ |
| H A D | decodecorpus.c | 205 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)]; 894 { U32 max = MaxML; in writeSequences() 906 …FSE_buildCTable_wksp(CTable_MatchLength, ML_defaultNorm, MaxML, ML_defaultNormLog, scratchBuffer, … in writeSequences()
|