Home
last modified time | relevance | path

Searched refs:litSize (Results 1 – 4 of 4) sorted by relevance

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_superblock.c282 size_t const litSize = seqStorePtr->lit - seqStorePtr->litStart; in ZSTD_buildSuperBlockEntropy() local
285 ZSTD_buildSuperBlockEntropy_literal(seqStorePtr->litStart, litSize, in ZSTD_buildSuperBlockEntropy()
322 const BYTE* literals, size_t litSize, in ZSTD_compressSubBlock_literal() argument
327 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal()
337 …DEBUGLOG(5, "ZSTD_compressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, l… in ZSTD_compressSubBlock_literal()
340 if (litSize == 0 || hufMetadata->hType == set_basic) { in ZSTD_compressSubBlock_literal()
342 return ZSTD_noCompressLiterals(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal()
345 return ZSTD_compressRleLiteralsBlock(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal()
348 assert(litSize > 0); in ZSTD_compressSubBlock_literal()
359 … size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize, hufTable) in ZSTD_compressSubBlock_literal()
[all …]
Dzstd_compress.c2134 size_t const litSize = (size_t)(seqStorePtr->lit - literals); in ZSTD_entropyCompressSequences_internal() local
2140 literals, litSize, in ZSTD_entropyCompressSequences_internal()
/linux-6.1.9/lib/zstd/decompress/
Dzstd_decompress_block.c97 { size_t lhSize, litSize, litCSize; in ZSTD_decodeLiteralsBlock() local
108 litSize = (lhc >> 4) & 0x3FF; in ZSTD_decodeLiteralsBlock()
114 litSize = (lhc >> 4) & 0x3FFF; in ZSTD_decodeLiteralsBlock()
120 litSize = (lhc >> 4) & 0x3FFFF; in ZSTD_decodeLiteralsBlock()
124 RETURN_ERROR_IF(litSize > ZSTD_BLOCKSIZE_MAX, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
128 if (dctx->ddictIsCold && (litSize > 768 /* heuristic */)) { in ZSTD_decodeLiteralsBlock()
135 dctx->litBuffer, litSize, istart+lhSize, litCSize, in ZSTD_decodeLiteralsBlock()
139 dctx->litBuffer, litSize, istart+lhSize, litCSize, in ZSTD_decodeLiteralsBlock()
146 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
151 dctx->entropy.hufTable, dctx->litBuffer, litSize, in ZSTD_decodeLiteralsBlock()
[all …]
Dzstd_decompress_internal.h136 size_t litSize; member