Home
last modified time | relevance | path

Searched refs:literals (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_compress_superblock.c23 * Compresses literals section for a sub-block.
27 * table size. If we guessed incorrectly, we fall back to uncompressed literals.
32 * hufMetadata->hType has literals block type info.
33 * If it is set_basic, all sub-blocks literals section will be Raw_Literals_Block.
34 * If it is set_rle, all sub-blocks literals section will be RLE_Literals_Block.
35 * If it is set_compressed, first sub-block's literals section will be Compressed_Literals_Block
36 * If it is set_compressed, first sub-block's literals section will be Treeless_Literals_Block
37 * and the following sub-blocks' literals sections will be Treeless_Literals_Block.
38 * @return : compressed size of literals section of a sub-block
43 const BYTE* literals, size_ in ZSTD_compressSubBlock_literal()
41 ZSTD_compressSubBlock_literal(const HUF_CElt* hufTable, const ZSTD_hufCTablesMetadata_t* hufMetadata, const BYTE* literals, size_t litSize, void* dst, size_t dstSize, const int bmi2, int writeEntropy, int* entropyWritten) ZSTD_compressSubBlock_literal() argument
259 ZSTD_compressSubBlock(const ZSTD_entropyCTables_t* entropy, const ZSTD_entropyCTablesMetadata_t* entropyMetadata, const seqDef* sequences, size_t nbSeq, const BYTE* literals, size_t litSize, const BYTE* llCode, const BYTE* mlCode, const BYTE* ofCode, const ZSTD_CCtx_params* cctxParams, void* dst, size_t dstCapacity, const int bmi2, int writeLitEntropy, int writeSeqEntropy, int* litEntropyWritten, int* seqEntropyWritten, U32 lastBlock) ZSTD_compressSubBlock() argument
302 ZSTD_estimateSubBlockSize_literal(const BYTE* literals, size_t litSize, const ZSTD_hufCTables_t* huf, const ZSTD_hufCTablesMetadata_t* hufMetadata, void* workspace, size_t wkspSize, int writeEntropy) ZSTD_estimateSubBlockSize_literal() argument
388 ZSTD_estimateSubBlockSize(const BYTE* literals, size_t litSize, const BYTE* ofCodeTable, const BYTE* llCodeTable, const BYTE* mlCodeTable, size_t nbSeq, const ZSTD_entropyCTables_t* entropy, const ZSTD_entropyCTablesMetadata_t* entropyMetadata, void* workspace, size_t wkspSize, int writeLitEntropy, int writeSeqEntropy) ZSTD_estimateSubBlockSize() argument
[all...]
H A Dzstd_compress_internal.h132 U32 litLength; /* Length of literals prior to match */
159 unsigned* litFreq; /* table of literals statistics, of size 256 */
166 U32 litSum; /* nb of literals */
526 * to generate a compress block or a compressed literals section.
585 * Allowed to overread literals up to litLimit.
589 size_t litLength, const BYTE* literals, const BYTE* litLimit, in ZSTD_storeSeq()
594 BYTE const* const litEnd = literals + litLength; in ZSTD_storeSeq()
597 if (g_start==NULL) g_start = (const BYTE*)literals; /* note : index only works for compression within a single segment */ in ZSTD_storeSeq()
598 { U32 const pos = (U32)((const BYTE*)literals - g_start); in ZSTD_storeSeq()
599 DEBUGLOG(6, "Cpos%7u :%3u literals, matc in ZSTD_storeSeq()
588 ZSTD_storeSeq(seqStore_t* seqStorePtr, size_t litLength, const BYTE* literals, const BYTE* litLimit, U32 offBase_minus1, size_t matchLength) ZSTD_storeSeq() argument
[all...]
H A Dzstd_opt.c120 * using src for literals stats, and baseline stats for sequence symbols
243 * price of literals (only) in specified segment (which length can be 0).
245 static U32 ZSTD_rawLiteralsCost(const BYTE* const literals, U32 const litLength, in ZSTD_rawLiteralsCost() argument
261 assert(WEIGHT(optPtr->litFreq[literals[u]], optLevel) <= optPtr->litSumBasePrice); /* literal cost should never be negative */ in ZSTD_rawLiteralsCost()
262 price -= WEIGHT(optPtr->litFreq[literals[u]], optLevel); in ZSTD_rawLiteralsCost()
278 * would be all literals. in ZSTD_litLengthPrice()
328 * assumption : literals + litLengtn <= iend */
330 U32 litLength, const BYTE* literals, in ZSTD_updateStats()
333 /* literals */ in ZSTD_updateStats()
337 optPtr->litFreq[literals[ in ZSTD_updateStats()
329 ZSTD_updateStats(optState_t* const optPtr, U32 litLength, const BYTE* literals, U32 offsetCode, U32 matchLength) ZSTD_updateStats() argument
[all...]
H A Dzstd_compress.c1857 /* ZSTD_wildcopy() is used to copy into the literals buffer, in ZSTD_resetCCtx_internal()
2478 * compresses both literals and sequences
2514 /* Compress literals */ in ZSTD_entropyCompressSeqStore_internal()
2515 { const BYTE* const literals = seqStorePtr->litStart; in ZSTD_entropyCompressSeqStore_internal() local
2518 /* Base suspicion of uncompressibility on ratio of literals to sequences */ in ZSTD_entropyCompressSeqStore_internal()
2520 size_t const litSize = (size_t)(seqStorePtr->lit - literals); in ZSTD_entropyCompressSeqStore_internal()
2526 literals, litSize, in ZSTD_entropyCompressSeqStore_internal()
2741 /* tell the optimal parser how we expect to compress literals */ in ZSTD_buildSeqStore()
2818 /* Ensure we have enough space for last literals "sequence" */ in ZSTD_copyBlockSequences()
2856 /* Insert last literals (i in ZSTD_copyBlockSequences()
3146 ZSTD_estimateBlockSize_literal(const BYTE* literals, size_t litSize, const ZSTD_hufCTables_t* huf, const ZSTD_hufCTablesMetadata_t* hufMetadata, void* workspace, size_t wkspSize, int writeEntropy) ZSTD_estimateBlockSize_literal() argument
3237 ZSTD_estimateBlockSize(const BYTE* literals, size_t litSize, const BYTE* ofCodeTable, const BYTE* llCodeTable, const BYTE* mlCodeTable, size_t nbSeq, const ZSTD_entropyCTables_t* entropy, const ZSTD_entropyCTablesMetadata_t* entropyMetadata, void* workspace, size_t wkspSize, int writeLitEntropy, int writeSeqEntropy) ZSTD_estimateBlockSize() argument
[all...]
/kernel/linux/linux-5.10/arch/xtensa/kernel/
H A Dmxhead.S30 .begin no-absolute-literals
62 .end no-absolute-literals
H A Dhead.S52 .begin no-absolute-literals
103 .end no-absolute-literals
/kernel/linux/linux-6.6/arch/xtensa/kernel/
H A Dmxhead.S30 .begin no-absolute-literals
64 .end no-absolute-literals
H A Dhead.S53 .begin no-absolute-literals
106 .end no-absolute-literals
/kernel/linux/linux-5.10/arch/xtensa/boot/boot-elf/
H A Dbootstrap.S29 .begin no-absolute-literals
77 .end no-absolute-literals
H A DMakefile15 export KBUILD_AFLAGS += -mtext-section-literals
/kernel/linux/linux-6.6/arch/xtensa/boot/boot-elf/
H A Dbootstrap.S29 .begin no-absolute-literals
79 .end no-absolute-literals
H A DMakefile10 KBUILD_AFLAGS += -mtext-section-literals
/kernel/linux/linux-6.6/arch/xtensa/
H A DMakefile35 KBUILD_CFLAGS += -pipe -mlongcalls -mtext-section-literals
43 KBUILD_AFLAGS += -mlongcalls -mtext-section-literals
/kernel/linux/linux-5.10/arch/xtensa/
H A DMakefile45 KBUILD_CFLAGS += -pipe -mlongcalls -mtext-section-literals
49 KBUILD_AFLAGS += -mlongcalls -mtext-section-literals
/kernel/linux/linux-5.10/lib/zstd/
H A Dzstd_opt.h101 FORCE_INLINE U32 ZSTD_getLiteralPrice(seqStore_t *ssPtr, U32 litLength, const BYTE *literals) in ZSTD_getLiteralPrice() argument
111 /* literals */ in ZSTD_getLiteralPrice()
112 if (ssPtr->cachedLiterals == literals) { in ZSTD_getLiteralPrice()
123 price -= ZSTD_highbit32(ssPtr->litFreq[literals[u]] + 1); in ZSTD_getLiteralPrice()
126 ssPtr->cachedLiterals = literals; in ZSTD_getLiteralPrice()
142 FORCE_INLINE U32 ZSTD_getPrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength, const int ultra) in ZSTD_getPrice() argument
149 return ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + ZSTD_highbit32((U32)matchLength + 1) + 16 + offCode; in ZSTD_getPrice()
162 return price + ZSTD_getLiteralPrice(seqStorePtr, litLength, literals) + seqStorePtr->factor; in ZSTD_getPrice()
165 ZSTD_STATIC void ZSTD_updatePrice(seqStore_t *seqStorePtr, U32 litLength, const BYTE *literals, U32 offset, U32 matchLength) in ZSTD_updatePrice() argument
169 /* literals */ in ZSTD_updatePrice()
[all...]
H A Dcompress.c619 /* Compress literals */ in ZSTD_compressSequences_internal()
621 const BYTE *const literals = seqStorePtr->litStart; in ZSTD_compressSequences_internal() local
622 size_t const litSize = seqStorePtr->lit - literals; in ZSTD_compressSequences_internal()
623 size_t const cSize = ZSTD_compressLiterals(zc, op, dstCapacity, literals, litSize); in ZSTD_compressSequences_internal()
857 Store a sequence (literal length, literals, offset code and match length code) into seqStore_t.
861 ZSTD_STATIC void ZSTD_storeSeq(seqStore_t *seqStorePtr, size_t litLength, const void *literals, U32 offsetCode, size_t matchCode) in ZSTD_storeSeq() argument
864 ZSTD_wildcopy(seqStorePtr->lit, literals, litLength); in ZSTD_storeSeq()

Completed in 22 milliseconds