MaxLL
#define MaxSeq MAX(MaxLL, MaxML) /* Assumption : MaxOff < MaxLL,MaxML */
#define ZSTD_MAX_FSE_HEADERS_SIZE (((MaxML + 1) * MLFSELog + (MaxLL + 1) * LLFSELog + (MaxOff + 1) * OffFSELog + 7) / 8)
static UNUSED_ATTR const U8 LL_bits[MaxLL+1] = {
static UNUSED_ATTR const S16 LL_defaultNorm[MaxLL+1] = {
+ ZSTD_cwksp_aligned64_alloc_size((MaxLL+1) * sizeof(U32))
ms->opt.litLengthFreq = (unsigned*)ZSTD_cwksp_reserve_aligned64(ws, (MaxLL+1) * sizeof(unsigned));
llCodeTable[seqStorePtr->longLengthPos] = MaxLL;
{ unsigned max = MaxLL;
LL_defaultNorm, LL_defaultNormLog, MaxLL,
cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->llType, llCodeTable, nbSeq, MaxLL,
LL_defaultNorm, LL_defaultNormLog, MaxLL,
{ short litlengthNCount[MaxLL+1];
unsigned litlengthMaxValue = MaxLL, litlengthLog;
bs->entropy.fse.litlength_repeatMode = ZSTD_dictNCountRepeat(litlengthNCount, litlengthMaxValue, MaxLL);
FSE_CTable litlengthCTable[FSE_CTABLE_SIZE_U32(LLFSELog, MaxLL)];
cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->llType, llCodeTable, MaxLL,
LL_defaultNorm, LL_defaultNormLog, MaxLL,
for (ll=0; ll<=MaxLL; ll++) {
{ unsigned const baseLLfreqs[MaxLL+1] = {
optPtr->litLengthSum = sum_u32(baseLLfreqs, MaxLL+1);
optPtr->litLengthSum = ZSTD_scaleStats(optPtr->litLengthFreq, MaxLL, 11);
{ short litlengthNCount[MaxLL+1];
unsigned litlengthMaxValue = MaxLL, litlengthLog;
RETURN_ERROR_IF(litlengthMaxValue > MaxLL, dictionary_corrupted, "");
LLtype, MaxLL, LLFSELog,
static UNUSED_ATTR const U32 LL_base[MaxLL+1] = {