Lines Matching refs:maxSymbolValue

68                       const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog,  in FSE_buildCTable_wksp()  argument
78 U32 const maxSV1 = maxSymbolValue+1; in FSE_buildCTable_wksp()
86 …if (FSE_BUILD_CTABLE_WORKSPACE_SIZE(maxSymbolValue, tableLog) > wkspSize) return ERROR(tableLog_to… in FSE_buildCTable_wksp()
89 tableU16[-1] = (U16) maxSymbolValue; in FSE_buildCTable_wksp()
177 for (s=0; s<=maxSymbolValue; s++) { in FSE_buildCTable_wksp()
204 for (symbol=0; symbol<=maxSymbolValue; symbol++) { in FSE_buildCTable_wksp()
222 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) in FSE_NCountWriteBound() argument
224 size_t const maxHeaderSize = (((maxSymbolValue+1) * tableLog in FSE_NCountWriteBound()
229 return maxSymbolValue ? maxHeaderSize : FSE_NCOUNTBOUND; /* maxSymbolValue==0 ? use default */ in FSE_NCountWriteBound()
234 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, in FSE_writeNCount_generic() argument
247 unsigned const alphabetSize = maxSymbolValue + 1; in FSE_writeNCount_generic()
329 const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) in FSE_writeNCount() argument
334 if (bufferSize < FSE_NCountWriteBound(maxSymbolValue, tableLog)) in FSE_writeNCount()
335 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 0); in FSE_writeNCount()
337 …return FSE_writeNCount_generic(buffer, bufferSize, normalizedCounter, maxSymbolValue, tableLog, 1 … in FSE_writeNCount()
345 FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog) in FSE_createCTable() argument
349 size = FSE_CTABLE_SIZE_U32 (tableLog, maxSymbolValue) * sizeof(U32); in FSE_createCTable()
356 static unsigned FSE_minTableLog(size_t srcSize, unsigned maxSymbolValue) in FSE_minTableLog() argument
359 U32 minBitsSymbols = BIT_highbit32(maxSymbolValue) + 2; in FSE_minTableLog()
365 unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue in FSE_optimalTableLog_internal() argument
369 U32 minBits = FSE_minTableLog(srcSize, maxSymbolValue); in FSE_optimalTableLog_internal()
379 unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) in FSE_optimalTableLog() argument
381 return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 2); in FSE_optimalTableLog()
387 …(short* norm, U32 tableLog, const unsigned* count, size_t total, U32 maxSymbolValue, short lowProb… in FSE_normalizeM2() argument
398 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
426 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
436 if (distributed == maxSymbolValue+1) { in FSE_normalizeM2()
441 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeM2()
449 for (s=0; ToDistribute > 0; s = (s+1)%(maxSymbolValue+1)) in FSE_normalizeM2()
458 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeM2()
475 unsigned maxSymbolValue, unsigned useLowProbCount) in FSE_normalizeCount() argument
481 …if (tableLog < FSE_minTableLog(total, maxSymbolValue)) return ERROR(GENERIC); /* Too small table… in FSE_normalizeCount()
494 for (s=0; s<=maxSymbolValue; s++) { in FSE_normalizeCount()
512 …rorCode = FSE_normalizeM2(normalizedCounter, tableLog, count, total, maxSymbolValue, lowProbCount); in FSE_normalizeCount()
522 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeCount()
524 for (s=0; s<=maxSymbolValue; s++) in FSE_normalizeCount()
541 const unsigned maxSymbolValue = tableMask; in FSE_buildCTable_raw() local
553 tableU16[-1] = (U16) maxSymbolValue; in FSE_buildCTable_raw()
561 for (s=0; s<=maxSymbolValue; s++) { in FSE_buildCTable_raw()
672 …void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tabl… in FSE_compress_wksp() argument
681 size_t const CTableSize = FSE_CTABLE_SIZE_U32(tableLog, maxSymbolValue); in FSE_compress_wksp()
686 …if (wkspSize < FSE_COMPRESS_WKSP_SIZE_U32(tableLog, maxSymbolValue)) return ERROR(tableLog_tooLarg… in FSE_compress_wksp()
688 if (!maxSymbolValue) maxSymbolValue = FSE_MAX_SYMBOL_VALUE; in FSE_compress_wksp()
692 …{ CHECK_V_F(maxCount, HIST_count_wksp(count, &maxSymbolValue, src, srcSize, scratchBuffer, scrat… in FSE_compress_wksp()
698 tableLog = FSE_optimalTableLog(tableLog, srcSize, maxSymbolValue); in FSE_compress_wksp()
699 …CHECK_F( FSE_normalizeCount(norm, tableLog, count, srcSize, maxSymbolValue, /* useLowProbCount */ … in FSE_compress_wksp()
702 { CHECK_V_F(nc_err, FSE_writeNCount(op, oend-op, norm, maxSymbolValue, tableLog) ); in FSE_compress_wksp()
707 …CHECK_F( FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, scratchBuffer, scratchBuffer… in FSE_compress_wksp()
727 …* dst, size_t dstCapacity, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tabl… in FSE_compress2() argument
732 …return FSE_compress_wksp(dst, dstCapacity, src, srcSize, maxSymbolValue, tableLog, &scratchBuffer,… in FSE_compress2()