Lines Matching defs:tableLog
80 2. normalize counters so that sum(count[]) == Power_of_2 (2^tableLog)
97 dynamically downsize 'tableLog' when conditions are met.
99 @return : recommended tableLog (necessarily <= 'maxTableLog') */
103 normalize counts so that sum(count[]) == Power_of_2 (2^tableLog)
105 @return : tableLog,
107 FSE_PUBLIC_API size_t FSE_normalizeCount(short *normalizedCounter, unsigned tableLog, const unsigned *count, size_t srcSize, unsigned maxSymbolValue);
110 Provides the maximum possible size of an FSE normalized table, given 'maxSymbolValue' and 'tableLog'.
112 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
118 FSE_PUBLIC_API size_t FSE_writeNCount(void *buffer, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
121 Note that FSE_CTable size depends on 'tableLog' and 'maxSymbolValue' */
143 FSE_normalizeCount() will ensure that sum of frequencies is == 2 ^'tableLog'.
145 You can use 'tableLog'==0 to mean "use default tableLog value".
146 If you are unsure of which tableLog value to use, you can ask FSE_optimalTableLog(),
147 which will provide the optimal valid tableLog given sourceSize, maxSymbolValue, and a user-defined maximum (0 means "default").
152 The return value is tableLog if everything proceeded as expected.
154 If there is an error (ex: invalid tableLog value), the function will return an ErrorCode (which can be tested using FSE_isError()).
184 Note that its size depends on 'tableLog' */
190 FSE_PUBLIC_API size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize);
211 FSE_readNCount() will provide 'tableLog' and 'maxSymbolValue'.
274 * `wkspSize` must be >= `(1<<tableLog)`.
276 size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workSpace, size_t wkspSize);
327 FSE_encodeSymbol() outputs a maximum of 'tableLog' bits at a time.
383 For information the maximum number of bits read by FSE_decodeSymbol() is 'tableLog'.
431 const U32 tableLog = ZSTD_read16(ptr);
432 statePtr->value = (ptrdiff_t)1 << tableLog;
434 statePtr->symbolTT = ((const U32 *)ct + 1 + (tableLog ? (1 << (tableLog - 1)) : 1));
435 statePtr->stateLog = tableLog;
471 U16 tableLog;
485 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog);