Searched refs:litSize (Results 1 – 4 of 4) sorted by relevance
/linux-6.12.1/lib/zstd/compress/ |
D | zstd_compress_superblock.c | 43 const BYTE* literals, size_t litSize, in ZSTD_compressSubBlock_literal() argument 48 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal() 58 …DEBUGLOG(5, "ZSTD_compressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, l… in ZSTD_compressSubBlock_literal() 61 if (litSize == 0 || hufMetadata->hType == set_basic) { in ZSTD_compressSubBlock_literal() 63 return ZSTD_noCompressLiterals(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal() 66 return ZSTD_compressRleLiteralsBlock(dst, dstSize, literals, litSize); in ZSTD_compressSubBlock_literal() 69 assert(litSize > 0); in ZSTD_compressSubBlock_literal() 80 … size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, oend-op, literals, litSize, hufTable) in ZSTD_compressSubBlock_literal() 81 … : HUF_compress4X_usingCTable(op, oend-op, literals, litSize, hufTable); in ZSTD_compressSubBlock_literal() 89 if (!writeEntropy && cLitSize >= litSize) { in ZSTD_compressSubBlock_literal() [all …]
|
D | zstd_compress.c | 2520 size_t const litSize = (size_t)(seqStorePtr->lit - literals); in ZSTD_entropyCompressSeqStore_internal() local 2526 literals, litSize, in ZSTD_entropyCompressSeqStore_internal() 3127 size_t const litSize = seqStorePtr->lit - seqStorePtr->litStart; in ZSTD_buildBlockEntropyStats() local 3129 ZSTD_buildBlockEntropyStats_literals(seqStorePtr->litStart, litSize, in ZSTD_buildBlockEntropyStats() 3146 static size_t ZSTD_estimateBlockSize_literal(const BYTE* literals, size_t litSize, in ZSTD_estimateBlockSize_literal() argument 3154 size_t literalSectionHeaderSize = 3 + (litSize >= 1 KB) + (litSize >= 16 KB); in ZSTD_estimateBlockSize_literal() 3155 U32 singleStream = litSize < 256; in ZSTD_estimateBlockSize_literal() 3157 if (hufMetadata->hType == set_basic) return litSize; in ZSTD_estimateBlockSize_literal() 3160 …st = HIST_count_wksp (countWksp, &maxSymbolValue, (const BYTE*)literals, litSize, workspace, wkspS… in ZSTD_estimateBlockSize_literal() 3161 if (ZSTD_isError(largest)) return litSize; in ZSTD_estimateBlockSize_literal() [all …]
|
/linux-6.12.1/lib/zstd/decompress/ |
D | zstd_decompress_block.c | 73 …ateLiteralsBuffer(ZSTD_DCtx* dctx, void* const dst, const size_t dstCapacity, const size_t litSize, in ZSTD_allocateLiteralsBuffer() argument 76 …ot_streaming && dstCapacity > ZSTD_BLOCKSIZE_MAX + WILDCOPY_OVERLENGTH + litSize + WILDCOPY_OVERLE… in ZSTD_allocateLiteralsBuffer() 80 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer() 83 else if (litSize > ZSTD_LITBUFFEREXTRASIZE) in ZSTD_allocateLiteralsBuffer() 88 …dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize + ZSTD_LITBUFFEREXTRASIZE - WILDCOPY_OV… in ZSTD_allocateLiteralsBuffer() 89 dctx->litBufferEnd = dctx->litBuffer + litSize - ZSTD_LITBUFFEREXTRASIZE; in ZSTD_allocateLiteralsBuffer() 93 dctx->litBuffer = (BYTE*)dst + expectedWriteSize - litSize; in ZSTD_allocateLiteralsBuffer() 102 dctx->litBufferEnd = dctx->litBuffer + litSize; in ZSTD_allocateLiteralsBuffer() 138 { size_t lhSize, litSize, litCSize; in ZSTD_decodeLiteralsBlock() local 150 litSize = (lhc >> 4) & 0x3FF; in ZSTD_decodeLiteralsBlock() [all …]
|
D | zstd_decompress_internal.h | 152 size_t litSize; member
|