Home
last modified time | relevance | path

Searched refs:HUF_CElt (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/contrib/zstd/lib/common/
H A Dhuf.h139 typedef size_t HUF_CElt; /* consider it an incomplete type */ typedef
143 HUF_CElt name[HUF_CTABLE_SIZE_ST(maxSymbolValue)] /* no final ; */
189 size_t HUF_buildCTable (HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue, unsigned …
190 size_t HUF_writeCTable (void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbolVal…
191 size_t HUF_writeCTable_wksp(void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbo…
192 …4X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable);
193 …_bmi2(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable, int bmi2…
194 size_t HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbol…
195 int HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue);
212HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2, unsigned suspectUncompressible…
[all …]
/freebsd/sys/contrib/zstd/lib/compress/
H A Dhuf_compress.c131 static size_t HUF_getNbBits(HUF_CElt elt) in HUF_getNbBits()
136 static size_t HUF_getNbBitsFast(HUF_CElt elt) in HUF_getNbBitsFast()
141 static size_t HUF_getValue(HUF_CElt elt) in HUF_getValue()
146 static size_t HUF_getValueFast(HUF_CElt elt) in HUF_getValueFast()
151 static void HUF_setNbBits(HUF_CElt* elt, size_t nbBits) in HUF_setNbBits()
157 static void HUF_setValue(HUF_CElt* elt, size_t value) in HUF_setValue()
162 *elt |= value << (sizeof(HUF_CElt) * 8 - nbBits); in HUF_setValue()
173 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog, in HUF_writeCTable_wksp()
176 HUF_CElt const* const ct = CTable + 1; in HUF_writeCTable_wksp()
214 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog) in HUF_writeCTable()
[all …]
H A Dzstd_compress_literals.c109 (HUF_CElt*)nextHuf->CTable, &repeat, preferRepeat, bmi2, suspectUncompressible) : in ZSTD_compressLiterals()
113 (HUF_CElt*)nextHuf->CTable, &repeat, preferRepeat, bmi2, suspectUncompressible); in ZSTD_compressLiterals()
H A Dzstd_compress_superblock.c41 static size_t ZSTD_compressSubBlock_literal(const HUF_CElt* hufTable, in ZSTD_compressSubBlock_literal()
276 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock()
317 …{ size_t cLitSizeEstimate = HUF_estimateCompressedSize((const HUF_CElt*)huf->CTable, countWksp, … in ZSTD_estimateSubBlockSize_literal()
H A Dzstd_compress.c3110 …if (repeat == HUF_repeat_check && !HUF_validateCTable((HUF_CElt const*)prevHuf->CTable, countWksp,… in ZSTD_buildBlockEntropyStats_literals()
3117 { size_t const maxBits = HUF_buildCTable_wksp((HUF_CElt*)nextHuf->CTable, countWksp, in ZSTD_buildBlockEntropyStats_literals()
3124 (HUF_CElt*)nextHuf->CTable, countWksp, maxSymbolValue); in ZSTD_buildBlockEntropyStats_literals()
3127 (HUF_CElt*)nextHuf->CTable, maxSymbolValue, huffLog, in ZSTD_buildBlockEntropyStats_literals()
3132 (HUF_CElt const*)prevHuf->CTable, countWksp, maxSymbolValue); in ZSTD_buildBlockEntropyStats_literals()
3253 …{ size_t cLitSizeEstimate = HUF_estimateCompressedSize((const HUF_CElt*)huf->CTable, countWksp, … in ZSTD_estimateBlockSize_literal()
4326 …size_t const hufHeaderSize = HUF_readCTable((HUF_CElt*)bs->entropy.huf.CTable, &maxSymbolValue, di… in ZSTD_loadCEntropy()
H A Dzstd_compress_internal.h66 HUF_CElt CTable[HUF_CTABLE_SIZE_ST(255)];
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dhuf.h141 HUF_CElt* name = (HUF_CElt*)(name##hv) /* no final ; */
187 typedef struct HUF_CElt_s HUF_CElt; /* incomplete type */ typedef
188 size_t HUF_buildCTable (HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue, unsigned …
189 size_t HUF_writeCTable (void* dst, size_t maxDstSize, const HUF_CElt* CTable, unsigned maxSymbolVal…
190 …4X_usingCTable(void* dst, size_t dstSize, const void* src, size_t srcSize, const HUF_CElt* CTable);
191 size_t HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbol…
192 int HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue);
208 HUF_CElt* hufTable, HUF_repeat* repeat, int preferRepeat, int bmi2);
216 size_t HUF_buildCTable_wksp (HUF_CElt* tree,
231 size_t HUF_readCTable (HUF_CElt* CTable, unsigned* maxSymbolValuePtr, const void* src, size_t srcSi…
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dhuf_compress.c115 const HUF_CElt* CTable, unsigned maxSymbolValue, unsigned huffLog) in HUF_writeCTable()
150 size_t HUF_readCTable (HUF_CElt* CTable, unsigned* maxSymbolValuePtr, const void* src, size_t srcSi… in HUF_readCTable()
202 const HUF_CElt* table = (const HUF_CElt*)symbolTable; in HUF_getNbBits()
338 size_t HUF_buildCTable_wksp (HUF_CElt* tree, const unsigned* count, U32 maxSymbolValue, U32 maxNbBi… in HUF_buildCTable_wksp()
416 size_t HUF_buildCTable (HUF_CElt* tree, const unsigned* count, unsigned maxSymbolValue, unsigned ma… in HUF_buildCTable()
422 size_t HUF_estimateCompressedSize(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbol… in HUF_estimateCompressedSize()
432 int HUF_validateCTable(const HUF_CElt* CTable, const unsigned* count, unsigned maxSymbolValue) { in HUF_validateCTable()
444 HUF_encodeSymbol(BIT_CStream_t* bitCPtr, U32 symbol, const HUF_CElt* CTable) in HUF_encodeSymbol()
460 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_body()
509 const HUF_CElt* CTable) in HUF_compress1X_usingCTable_internal_bmi2()
[all …]
H A Dzstd_compress_superblock.c116 …if (repeat == HUF_repeat_check && !HUF_validateCTable((HUF_CElt const*)prevHuf->CTable, countWksp,… in ZSTD_buildSuperBlockEntropy_literal()
123 { size_t const maxBits = HUF_buildCTable_wksp((HUF_CElt*)nextHuf->CTable, countWksp, in ZSTD_buildSuperBlockEntropy_literal()
130 (HUF_CElt*)nextHuf->CTable, countWksp, maxSymbolValue); in ZSTD_buildSuperBlockEntropy_literal()
133 (HUF_CElt*)nextHuf->CTable, maxSymbolValue, huffLog); in ZSTD_buildSuperBlockEntropy_literal()
137 (HUF_CElt const*)prevHuf->CTable, countWksp, maxSymbolValue); in ZSTD_buildSuperBlockEntropy_literal()
319 static size_t ZSTD_compressSubBlock_literal(const HUF_CElt* hufTable, in ZSTD_compressSubBlock_literal()
553 { size_t cLitSize = ZSTD_compressSubBlock_literal((const HUF_CElt*)entropy->huf.CTable, in ZSTD_compressSubBlock()
594 …{ size_t cLitSizeEstimate = HUF_estimateCompressedSize((const HUF_CElt*)huf->CTable, countWksp, … in ZSTD_estimateSubBlockSize_literal()
H A Dzstd_compress_literals.c108 (HUF_CElt*)nextHuf->CTable, &repeat, preferRepeat, bmi2) : in ZSTD_compressLiterals()
112 (HUF_CElt*)nextHuf->CTable, &repeat, preferRepeat, bmi2); in ZSTD_compressLiterals()
H A Dzstd_compress.c2913 …size_t const hufHeaderSize = HUF_readCTable((HUF_CElt*)bs->entropy.huf.CTable, &maxSymbolValue, di… in ZSTD_loadCEntropy()
/freebsd/sys/contrib/zstd/lib/legacy/
H A Dzstd_v01.c939 } HUF_CElt ; typedef