Home
last modified time | relevance | path

Searched refs:lhSize (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/lib/zstd/compress/
Dzstd_compress_literals.c80 size_t const lhSize = 3 + (srcSize >= 1 KB) + (srcSize >= 16 KB); in ZSTD_compressLiterals() local
101 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
104 if (repeat == HUF_repeat_valid && lhSize == 3) singleStream = 1; in ZSTD_compressLiterals()
107 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
111 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
136 switch(lhSize) in ZSTD_compressLiterals()
157 DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)srcSize, (U32)(lhSize+cLitSize)); in ZSTD_compressLiterals()
158 return lhSize+cLitSize; in ZSTD_compressLiterals()
Dzstd_compress_superblock.c48 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal() local
51 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal()
52 U32 const singleStream = lhSize == 3; in ZSTD_compressSubBlock_literal()
58 …mpressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, lhSize, writeEntropy); in ZSTD_compressSubBlock_literal()
94 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal()
103 switch(lhSize) in ZSTD_compressSubBlock_literal()
/linux-6.6.21/lib/zstd/decompress/
Dzstd_decompress_block.c138 { size_t lhSize, litSize, litCSize; in ZSTD_decodeLiteralsBlock() local
149 lhSize = 3; in ZSTD_decodeLiteralsBlock()
155 lhSize = 4; in ZSTD_decodeLiteralsBlock()
161 lhSize = 5; in ZSTD_decodeLiteralsBlock()
168 RETURN_ERROR_IF(litCSize + lhSize > srcSize, corruption_detected, ""); in ZSTD_decodeLiteralsBlock()
180 dctx->litBuffer, litSize, istart+lhSize, litCSize, in ZSTD_decodeLiteralsBlock()
184 dctx->litBuffer, litSize, istart+lhSize, litCSize, in ZSTD_decodeLiteralsBlock()
192 istart+lhSize, litCSize, dctx->workspace, in ZSTD_decodeLiteralsBlock()
197 istart+lhSize, litCSize, dctx->workspace, in ZSTD_decodeLiteralsBlock()
203 istart+lhSize, litCSize, dctx->workspace, in ZSTD_decodeLiteralsBlock()
[all …]
Dzstd_decompress.c1910 zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0; in ZSTD_decompressStream()
1917 …t hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format); in ZSTD_decompressStream()
1926 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
1931 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream()
1932 zds->lhSize += remainingInput; in ZSTD_decompressStream()
1935 …return (MAX((size_t)ZSTD_FRAMEHEADERSIZE_MIN(zds->format), hSize) - zds->lhSize) + ZSTD_blockHeade… in ZSTD_decompressStream()
1938 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream()
1976 FORWARD_IF_ERROR(ZSTD_decodeFrameHeader(zds, zds->headerBuffer, zds->lhSize), ""); in ZSTD_decompressStream()
Dzstd_decompress_internal.h178 size_t lhSize; member