Lines Matching refs:maxSymbolValue

68                       const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,  in FSE_buildCTable_wksp()  argument
80 FSE_FUNCTION_TYPE* tableSymbol = (FSE_FUNCTION_TYPE*)(cumul + (maxSymbolValue + 2)); in FSE_buildCTable_wksp()
85 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp()
88 tableU16[-1] = (U16) maxSymbolValue; in FSE_buildCTable_wksp()
101 for (u=1; u <= maxSymbolValue+1; u++) { in FSE_buildCTable_wksp()
108 cumul[maxSymbolValue+1] = tableSize+1; in FSE_buildCTable_wksp()
114 for (symbol=0; symbol<=maxSymbolValue; symbol++) { in FSE_buildCTable_wksp()
136 for (s=0; s<=maxSymbolValue; s++) { in FSE_buildCTable_wksp()
162 for (symbol=0; symbol<=maxSymbolValue; symbol++) { in FSE_buildCTable_wksp()
183 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) in FSE_NCountWriteBound() argument
185 size_t const maxHeaderSize = (((maxSymbolValue+1) * tableLog) >> 3) + 3; in FSE_NCountWriteBound()
186 return maxSymbolValue ? maxHeaderSize : FSE_NCOUNTBOUND; /* maxSymbolValue==0 ? use default */ in FSE_NCountWriteBound()
191 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
204 unsigned const alphabetSize = maxSymbolValue + 1; in FSE_writeNCount_generic()
286 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
291 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
292 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
294 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
302 FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog) in FSE_createCTable() argument
306 size = FSE_CTABLE_SIZE_U32 (tableLog, maxSymbolValue) * sizeof(U32); in FSE_createCTable()
313 static unsigned FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue) in FSE_minTableLog() argument
316 U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
322 unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue in FSE_optimalTableLog_internal() argument
326 U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue); in FSE_optimalTableLog_internal()
336 unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) in FSE_optimalTableLog() argument
338 return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 2); in FSE_optimalTableLog()
344 …(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue, short lowProb… in FSE_normalizeM2() argument
355 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
383 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
393 if (distributed == maxSymbolValue+1) { in FSE_normalizeM2()
398 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeM2()
406 for (s=0; ToDistribute > 0; s = (s+1)%(maxSymbolValue+1)) in FSE_normalizeM2()
415 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
432 unsigned maxSymbolValue, unsigned useLowProbCount) in FSE_normalizeCount() argument
438 …if (tableLog < FSE_minTableLog(total, maxSymbolValue)) return ERROR(GENERIC); /* Too small table… in FSE_normalizeCount()
451 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeCount()
469 …rorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue, lowProbCount); in FSE_normalizeCount()
479 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeCount()
481 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeCount()
498 const unsigned maxSymbolValue = tableMask; in FSE_buildCTable_raw() local
510 tableU16[-1] = (U16) maxSymbolValue; in FSE_buildCTable_raw()
518 for (s=0; s<=maxSymbolValue; s++) { in FSE_buildCTable_raw()