• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/contrib/zstd/lib/common/

Lines Matching refs:tableLog

117     Same as FSE_compress(), but allows the selection of 'maxSymbolValue' and 'tableLog'
124 FSE_PUBLIC_API size_t FSE_compress2 (void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog);
133 2. normalize counters so that sum(count[]) == Power_of_2 (2^tableLog)
160 dynamically downsize 'tableLog' when conditions are met.
162 @return : recommended tableLog (necessarily <= 'maxTableLog') */
166 normalize counts so that sum(count[]) == Power_of_2 (2^tableLog)
168 @return : tableLog,
170 FSE_PUBLIC_API size_t FSE_normalizeCount(short* normalizedCounter, unsigned tableLog, const unsigned* count, size_t srcSize, unsigned maxSymbolValue);
173 Provides the maximum possible size of an FSE normalized table, given 'maxSymbolValue' and 'tableLog'.
175 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog);
181 FSE_PUBLIC_API size_t FSE_writeNCount (void* buffer, size_t bufferSize, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
185 Note that FSE_CTable size depends on 'tableLog' and 'maxSymbolValue' */
187 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog);
193 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
214 FSE_normalizeCount() will ensure that sum of frequencies is == 2 ^'tableLog'.
216 You can use 'tableLog'==0 to mean "use default tableLog value".
217 If you are unsure of which tableLog value to use, you can ask FSE_optimalTableLog(),
218 which will provide the optimal valid tableLog given sourceSize, maxSymbolValue, and a user-defined maximum (0 means "default").
223 The return value is tableLog if everything proceeded as expected.
225 If there is an error (ex: invalid tableLog value), the function will return an ErrorCode (which can be tested using FSE_isError()).
256 Note that its size depends on 'tableLog' */
258 FSE_PUBLIC_API FSE_DTable* FSE_createDTable(unsigned tableLog);
264 FSE_PUBLIC_API size_t FSE_buildDTable (FSE_DTable* dt, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
285 FSE_readNCount() will provide 'tableLog' and 'maxSymbolValue'.
364 size_t FSE_compress_wksp (void* dst, size_t dstSize, const void* src, size_t srcSize, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize);
374 * `wkspSize` must be >= `(1<<tableLog)`.
376 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize);
433 FSE_encodeSymbol() outputs a maximum of 'tableLog' bits at a time.
491 For information the maximum number of bits read by FSE_decodeSymbol() is 'tableLog'.
541 const U32 tableLog = MEM_read16(ptr);
542 statePtr->value = (ptrdiff_t)1<<tableLog;
544 statePtr->symbolTT = ((const U32*)ct + 1 + (tableLog ? (1<<(tableLog-1)) : 1));
545 statePtr->stateLog = tableLog;
582 U16 tableLog;
597 DStatePtr->state = BIT_readBits(bitD, DTableH->tableLog);