MaxOff
#define ZSTD_MAX_FSE_HEADERS_SIZE (((MaxML + 1) * MLFSELog + (MaxLL + 1) * LLFSELog + (MaxOff + 1) * OffFSELog + 7) / 8)
+ ZSTD_cwksp_aligned64_alloc_size((MaxOff+1) * sizeof(U32))
ms->opt.offCodeFreq = (unsigned*)ZSTD_cwksp_reserve_aligned64(ws, (MaxOff+1) * sizeof(unsigned));
{ unsigned max = MaxOff;
cSeqSizeEstimate += ZSTD_estimateBlockSize_symbolType(fseMetadata->ofType, ofCodeTable, nbSeq, MaxOff,
short offcodeNCount[MaxOff+1];
unsigned offcodeMaxValue = MaxOff;
offcodeNCount, MaxOff, offcodeLog,
U32 offcodeMax = MaxOff;
bs->entropy.fse.offcode_repeatMode = ZSTD_dictNCountRepeat(offcodeNCount, offcodeMaxValue, MIN(offcodeMax, MaxOff));
FSE_CTable offcodeCTable[FSE_CTABLE_SIZE_U32(OffFSELog, MaxOff)];
cSeqSizeEstimate += ZSTD_estimateSubBlockSize_symbolType(fseMetadata->ofType, ofCodeTable, MaxOff,
for (of=0; of<=MaxOff; of++) {
{ unsigned const baseOFCfreqs[MaxOff+1] = {
optPtr->offCodeSum = sum_u32(baseOFCfreqs, MaxOff+1);
optPtr->offCodeSum = ZSTD_scaleStats(optPtr->offCodeFreq, MaxOff, 11);
assert(offCode <= MaxOff);
{ short offcodeNCount[MaxOff+1];
unsigned offcodeMaxValue = MaxOff, offcodeLog;
RETURN_ERROR_IF(offcodeMaxValue > MaxOff, dictionary_corrupted, "");
assert(ofBits <= MaxOff);
OFtype, MaxOff, OffFSELog,
static UNUSED_ATTR const U32 OF_base[MaxOff+1] = {
static UNUSED_ATTR const U8 OF_bits[MaxOff+1] = {