/linux-4.19.296/lib/zstd/ |
D | fse_compress.c | 92 size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue… in FSE_buildCTable_wksp() argument 119 tableU16[-1] = (U16)maxSymbolValue; in FSE_buildCTable_wksp() 128 for (u = 1; u <= maxSymbolValue + 1; u++) { in FSE_buildCTable_wksp() 136 cumul[maxSymbolValue + 1] = tableSize + 1; in FSE_buildCTable_wksp() 143 for (symbol = 0; symbol <= maxSymbolValue; symbol++) { in FSE_buildCTable_wksp() 170 for (s = 0; s <= maxSymbolValue; s++) { in FSE_buildCTable_wksp() 197 size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog) in FSE_NCountWriteBound() argument 199 size_t const maxHeaderSize = (((maxSymbolValue + 1) * tableLog) >> 3) + 3; in FSE_NCountWriteBound() 200 return maxSymbolValue ? maxHeaderSize : FSE_NCOUNTBOUND; /* maxSymbolValue==0 ? use default */ in FSE_NCountWriteBound() 203 …r, size_t headerBufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tabl… in FSE_writeNCount_generic() argument [all …]
|
D | huf_compress.c | 68 unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue) in HUF_optimalTableLog() argument 70 return FSE_optimalTableLog_internal(maxTableLog, srcSize, maxSymbolValue, 1); in HUF_optimalTableLog() 88 U32 maxSymbolValue = HUF_TABLELOG_MAX; in HUF_compressWeights_wksp() local 116 CHECK_V_F(maxCount, FSE_count_simple(count, &maxSymbolValue, weightTable, wtSize)); in HUF_compressWeights_wksp() 123 tableLog = FSE_optimalTableLog(tableLog, wtSize, maxSymbolValue); in HUF_compressWeights_wksp() 124 CHECK_F(FSE_normalizeCount(norm, tableLog, count, wtSize, maxSymbolValue)); in HUF_compressWeights_wksp() 128 CHECK_V_F(hSize, FSE_writeNCount(op, oend - op, norm, maxSymbolValue, tableLog)); in HUF_compressWeights_wksp() 133 CHECK_F(FSE_buildCTable_wksp(CTable, norm, maxSymbolValue, tableLog, workspace, workspaceSize)); in HUF_compressWeights_wksp() 152 …Table_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, U32 maxSymbolValue, U32 huffLog, … in HUF_writeCTable_wksp() argument 172 if (maxSymbolValue > HUF_SYMBOLVALUE_MAX) in HUF_writeCTable_wksp() [all …]
|
D | huf.h | 57 …void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tabl… 82 #define HUF_CREATE_STATIC_CTABLE(name, maxSymbolValue) \ argument 83 U32 name##hb[maxSymbolValue + 1]; \ 128 unsigned HUF_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue); 130 …_wksp(void *dst, size_t maxDstSize, const HUF_CElt *CTable, unsigned maxSymbolValue, unsigned huff… 144 …void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tabl… 152 size_t HUF_buildCTable_wksp(HUF_CElt *tree, const U32 *count, U32 maxSymbolValue, U32 maxNbBits, vo… 164 size_t HUF_readCTable_wksp(HUF_CElt *CTable, unsigned maxSymbolValue, const void *src, size_t srcSi… 189 …void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tabl… 197 …void *dst, size_t dstSize, const void *src, size_t srcSize, unsigned maxSymbolValue, unsigned tabl…
|
D | fse.h | 100 …IC_API unsigned FSE_optimalTableLog(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue); 107 …malizedCounter, unsigned tableLog, const unsigned *count, size_t srcSize, unsigned maxSymbolValue); 112 FSE_PUBLIC_API size_t FSE_NCountWriteBound(unsigned maxSymbolValue, unsigned tableLog); 118 …*buffer, size_t bufferSize, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tabl… 190 …DTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tabl… 239 #define FSE_CTABLE_SIZE_U32(maxTableLog, maxSymbolValue) (1 + (1 << (maxTableLog - 1)) + ((maxSymbo… argument 263 unsigned FSE_optimalTableLog_internal(unsigned maxTableLog, size_t srcSize, unsigned maxSymbolValue… 276 size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue…
|
D | fse_decompress.c | 95 size_t FSE_buildDTable_wksp(FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue… in FSE_buildDTable_wksp() argument 101 U32 const maxSV1 = maxSymbolValue + 1; in FSE_buildDTable_wksp() 108 if (maxSymbolValue > FSE_MAX_SYMBOL_VALUE) in FSE_buildDTable_wksp() 299 unsigned maxSymbolValue = FSE_MAX_SYMBOL_VALUE; in FSE_decompress_wksp() local 319 NCountLength = FSE_readNCount(counting, &maxSymbolValue, &tableLog, istart, cSrcSize); in FSE_decompress_wksp() 329 CHECK_F(FSE_buildDTable_wksp(dt, counting, maxSymbolValue, tableLog, workspace, workspaceSize)); in FSE_decompress_wksp()
|
D | compress.c | 2605 …STD_checkDictNCount(short *normalizedCounter, unsigned dictMaxSymbolValue, unsigned maxSymbolValue) in ZSTD_checkDictNCount() argument 2608 if (dictMaxSymbolValue < maxSymbolValue) in ZSTD_checkDictNCount() 2610 for (s = 0; s <= maxSymbolValue; ++s) { in ZSTD_checkDictNCount()
|