Lines Matching refs:maxSymbolValue

70                       const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,  in FSE_buildCTable_wksp()  argument
80 U32 const maxSV1 = maxSymbolValue+1; in FSE_buildCTable_wksp()
88 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp()
91 tableU16[-1] = (U16) maxSymbolValue; in FSE_buildCTable_wksp()
179 for (s=0; s<=maxSymbolValue; s++) { in FSE_buildCTable_wksp()
206 for (symbol=0; symbol<=maxSymbolValue; symbol++) { in FSE_buildCTable_wksp()
224 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) in FSE_NCountWriteBound() argument
226 size_t const maxHeaderSize = (((maxSymbolValue+1) * tableLog in FSE_NCountWriteBound()
231 return maxSymbolValue ? maxHeaderSize : FSE_NCOUNTBOUND; /* maxSymbolValue==0 ? use default */ in FSE_NCountWriteBound()
236 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
249 unsigned const alphabetSize = maxSymbolValue + 1; in FSE_writeNCount_generic()
332 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
337 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
338 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
340 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
349 static unsigned FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue) in FSE_minTableLog() argument
352 U32 minBitsSymbols = ZSTD_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
358 unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue in FSE_optimalTableLog_internal() argument
362 U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue); in FSE_optimalTableLog_internal()
372 unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) in FSE_optimalTableLog() argument
374 return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 2); in FSE_optimalTableLog()
380 …(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue, short lowProb… in FSE_normalizeM2() argument
391 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
419 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
429 if (distributed == maxSymbolValue+1) { in FSE_normalizeM2()
434 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeM2()
442 for (s=0; ToDistribute > 0; s = (s+1)%(maxSymbolValue+1)) in FSE_normalizeM2()
451 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
468 unsigned maxSymbolValue, unsigned useLowProbCount) in FSE_normalizeCount() argument
474 …if (tableLog < FSE_minTableLog(total, maxSymbolValue)) return ERROR(GENERIC); /* Too small table… in FSE_normalizeCount()
487 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeCount()
505 …rorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue, lowProbCount); in FSE_normalizeCount()
515 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeCount()
517 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeCount()