Home
last modified time | relevance | path

Searched refs:FSE_CTable (Results 1 - 12 of 12) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress_sequences.h14 #include "../common/fse.h" /* FSE_repeat, FSE_CTable */
26 FSE_CTable const* prevCTable,
33 FSE_CTable* nextCTable, U32 FSELog, symbolEncodingType_e type,
37 const FSE_CTable* prevCTable, size_t prevCTableSize,
42 FSE_CTable const* CTable_MatchLength, BYTE const* mlCodeTable,
43 FSE_CTable const* CTable_OffsetBits, BYTE const* ofCodeTable,
44 FSE_CTable const* CTable_LitLength, BYTE const* llCodeTable,
48 FSE_CTable const* ctable,
H A Dzstd_compress_sequences.c46 static unsigned ZSTD_getFSEMaxSymbolValue(FSE_CTable const* ctable) { in ZSTD_getFSEMaxSymbolValue()
105 FSE_CTable const* ctable, in ZSTD_fseBitCost()
115 DEBUGLOG(5, "Repeat FSE_CTable has maxSymbolValue %u < %u", in ZSTD_fseBitCost()
126 DEBUGLOG(5, "Repeat FSE_CTable has Prob[%u] == 0", s); in ZSTD_fseBitCost()
160 FSE_CTable const* prevCTable, in ZSTD_selectEncodingType()
244 FSE_CTable* nextCTable, U32 FSELog, symbolEncodingType_e type, in ZSTD_buildCTable()
248 const FSE_CTable* prevCTable, size_t prevCTableSize, in ZSTD_buildCTable()
293 FSE_CTable const* CTable_MatchLength, BYTE const* mlCodeTable, in ZSTD_encodeSequences_body()
294 FSE_CTable const* CTable_OffsetBits, BYTE const* ofCodeTable, in ZSTD_encodeSequences_body()
295 FSE_CTable cons in ZSTD_encodeSequences_body()
[all...]
H A Dfse_compress.c67 size_t FSE_buildCTable_wksp(FSE_CTable* ct, in FSE_buildCTable_wksp()
345 FSE_CTable* FSE_createCTable (unsigned maxSymbolValue, unsigned tableLog) in FSE_createCTable()
350 return (FSE_CTable*)ZSTD_malloc(size); in FSE_createCTable()
353 void FSE_freeCTable (FSE_CTable* ct) { ZSTD_free(ct); } in FSE_freeCTable()
536 /* fake FSE_CTable, for raw (uncompressed) input */
537 size_t FSE_buildCTable_raw (FSE_CTable* ct, unsigned nbBits) in FSE_buildCTable_raw()
569 /* fake FSE_CTable, for rle input (always same symbol) */
570 size_t FSE_buildCTable_rle (FSE_CTable* ct, BYTE symbolValue) in FSE_buildCTable_rle()
595 const FSE_CTable* ct, const unsigned fast) in FSE_compress_usingCTable_generic()
654 const FSE_CTable* c in FSE_compress_usingCTable()
[all...]
H A Dzstd_compress_internal.h65 FSE_CTable offcodeCTable[FSE_CTABLE_SIZE_U32(OffFSELog, MaxOff)];
66 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
67 FSE_CTable litlengthCTable[FSE_CTABLE_SIZE_U32(LLFSELog, MaxLL)];
H A Dzstd_compress_superblock.c327 size_t nbSeq, const FSE_CTable* fseCTable, in ZSTD_estimateSubBlockSize_symbolType()
H A Dzstd_compress.c2368 FSE_CTable* CTable_LitLength = nextEntropy->litlengthCTable; in ZSTD_buildSequencesStatistics()
2369 FSE_CTable* CTable_OffsetBits = nextEntropy->offcodeCTable; in ZSTD_buildSequencesStatistics()
2370 FSE_CTable* CTable_MatchLength = nextEntropy->matchlengthCTable; in ZSTD_buildSequencesStatistics()
2494 FSE_CTable* CTable_LitLength = nextEntropy->fse.litlengthCTable; in ZSTD_entropyCompressSeqStore_internal()
2495 FSE_CTable* CTable_OffsetBits = nextEntropy->fse.offcodeCTable; in ZSTD_entropyCompressSeqStore_internal()
2496 FSE_CTable* CTable_MatchLength = nextEntropy->fse.matchlengthCTable; in ZSTD_entropyCompressSeqStore_internal()
3174 const FSE_CTable* fseCTable, in ZSTD_estimateBlockSize_symbolType()
H A Dhuf_compress.c83 FSE_CTable CTable[FSE_CTABLE_SIZE_U32(MAX_FSE_TABLELOG_FOR_HUFF_HEADER, HUF_TABLELOG_MAX)];
/kernel/linux/linux-6.6/lib/zstd/common/
H A Dfse.h161 /*! 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* */ typedef
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
[all...]
/kernel/linux/linux-5.10/lib/zstd/
H A Dfse.h120 /*! Constructor and Destructor of FSE_CTable.
121 Note that FSE_CTable size depends on 'tableLog' and 'maxSymbolValue' */
122 typedef unsigned FSE_CTable; /* don't allocate that. It's only meant to be more restrictive than void* */ typedef
129 FSE_PUBLIC_API size_t FSE_compress_usingCTable(void *dst, size_t dstCapacity, const void *src, size_t srcSize, const FSE_CTable *ct);
238 /* It is possible to statically allocate FSE CTable/DTable as a table of FSE_CTable/FSE_DTable using below macros */
266 size_t FSE_buildCTable_raw(FSE_CTable *ct, unsigned nbBits);
267 /**< build a fake FSE_CTable, designed for a flat distribution, where each symbol uses nbBits */
269 size_t FSE_buildCTable_rle(FSE_CTable *ct, unsigned char symbolValue);
270 /**< build a fake FSE_CTable, designed to compress always the same symbolValue */
276 size_t FSE_buildCTable_wksp(FSE_CTable *c
[all...]
H A Dfse_compress.c92 size_t FSE_buildCTable_wksp(FSE_CTable *ct, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog, void *workspace, size_t workspaceSize) in FSE_buildCTable_wksp()
470 FSE_CTable is a variable size structure which contains :
665 /* fake FSE_CTable, for raw (uncompressed) input */
666 size_t FSE_buildCTable_raw(FSE_CTable *ct, unsigned nbBits) in FSE_buildCTable_raw()
701 /* fake FSE_CTable, for rle input (always same symbol) */
702 size_t FSE_buildCTable_rle(FSE_CTable *ct, BYTE symbolValue) in FSE_buildCTable_rle()
724 static size_t FSE_compress_usingCTable_generic(void *dst, size_t dstSize, const void *src, size_t srcSize, const FSE_CTable *ct, const unsigned fast) in FSE_compress_usingCTable_generic()
785 size_t FSE_compress_usingCTable(void *dst, size_t dstSize, const void *src, size_t srcSize, const FSE_CTable *ct) in FSE_compress_usingCTable()
H A Dhuf_compress.c91 FSE_CTable *CTable; in HUF_compressWeights_wksp()
96 HUF_STATIC_ASSERT(sizeof(FSE_CTable) == sizeof(U32)); in HUF_compressWeights_wksp()
98 CTable = (FSE_CTable *)((U32 *)workspace + spaceUsed32); in HUF_compressWeights_wksp()
H A Dcompress.c84 FSE_CTable offcodeCTable[FSE_CTABLE_SIZE_U32(OffFSELog, MaxOff)];
85 FSE_CTable matchlengthCTable[FSE_CTABLE_SIZE_U32(MLFSELog, MaxML)];
86 FSE_CTable litlengthCTable[FSE_CTABLE_SIZE_U32(LLFSELog, MaxLL)];
590 FSE_CTable *CTable_LitLength = zc->litlengthCTable; in ZSTD_compressSequences_internal()
591 FSE_CTable *CTable_OffsetBits = zc->offcodeCTable; in ZSTD_compressSequences_internal()
592 FSE_CTable *CTable_MatchLength = zc->matchlengthCTable; in ZSTD_compressSequences_internal()

Completed in 37 milliseconds