Lines Matching refs:FSE_CTable

161 /*! Constructor and Destructor of FSE_CTable.
162 Note that FSE_CTable size depends on 'tableLog' and 'maxSymbolValue' */
163 typedef unsigned FSE_CTable; /* don't allocate that. It's only meant to be more restrictive than void* */
164 FSE_PUBLIC_API FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog);
165 FSE_PUBLIC_API void FSE_freeCTable (FSE_CTable* ct);
170 FSE_PUBLIC_API size_t FSE_buildCTable(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog);
177 FSE_PUBLIC_API size_t FSE_compress_usingCTable (void* dst, size_t dstCapacity, const void* src, size_t srcSize, const FSE_CTable* ct);
304 /* It is possible to statically allocate FSE CTable/DTable as a table of FSE_CTable/FSE_DTable using below macros */
309 #define FSE_CTABLE_SIZE(maxTableLog, maxSymbolValue) (FSE_CTABLE_SIZE_U32(maxTableLog, maxSymbolValue) * sizeof(FSE_CTable))
322 * FSE_COMPRESS_WKSP_SIZE_U32() provides the minimum size required for `workSpace` as a table of FSE_CTable.
327 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits);
328 /*< build a fake FSE_CTable, designed for a flat distribution, where each symbol uses nbBits */
330 size_t FSE_buildCTable_rle (FSE_CTable* ct, unsigned char symbolValue);
331 /*< build a fake FSE_CTable, designed to compress always the same symbolValue */
340 size_t FSE_buildCTable_wksp(FSE_CTable* ct, const short* normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void* workSpace, size_t wkspSize);
381 static void FSE_initCState(FSE_CState_t* CStatePtr, const FSE_CTable* ct);
396 FSE_CTable ct; // Provided by FSE_buildCTable()
511 MEM_STATIC void FSE_initCState(FSE_CState_t* statePtr, const FSE_CTable* ct)
526 MEM_STATIC void FSE_initCState2(FSE_CState_t* statePtr, const FSE_CTable* ct, U32 symbol)