Home
last modified time | relevance | path

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

/linux/lib/zstd/compress/
A Dzstd_compress_literals.c79 size_t const lhSize = 3 + (srcSize >= 1 KB) + (srcSize >= 16 KB); in ZSTD_compressLiterals() local
100 RETURN_ERROR_IF(dstCapacity < lhSize+1, dstSize_tooSmall, "not enough space for compression"); in ZSTD_compressLiterals()
103 if (repeat == HUF_repeat_valid && lhSize == 3) singleStream = 1; in ZSTD_compressLiterals()
106 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
110 ostart+lhSize, dstCapacity-lhSize, src, srcSize, in ZSTD_compressLiterals()
135 switch(lhSize) in ZSTD_compressLiterals()
156 DEBUGLOG(5, "Compressed literals: %u -> %u", (U32)srcSize, (U32)(lhSize+cLitSize)); in ZSTD_compressLiterals()
157 return lhSize+cLitSize; in ZSTD_compressLiterals()
A Dzstd_compress_superblock.c327 size_t const lhSize = 3 + (litSize >= (1 KB - header)) + (litSize >= (16 KB - header)); in ZSTD_compressSubBlock_literal() local
330 BYTE* op = ostart + lhSize; in ZSTD_compressSubBlock_literal()
331 U32 const singleStream = lhSize == 3; in ZSTD_compressSubBlock_literal()
337 …mpressSubBlock_literal (litSize=%zu, lhSize=%zu, writeEntropy=%d)", litSize, lhSize, writeEntropy); in ZSTD_compressSubBlock_literal()
373 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal()
382 switch(lhSize) in ZSTD_compressSubBlock_literal()
/linux/lib/zstd/decompress/
A Dzstd_decompress_block.c107 lhSize = 3; in ZSTD_decodeLiteralsBlock()
113 lhSize = 4; in ZSTD_decodeLiteralsBlock()
119 lhSize = 5; in ZSTD_decodeLiteralsBlock()
179 lhSize = 1; in ZSTD_decodeLiteralsBlock()
183 lhSize = 2; in ZSTD_decodeLiteralsBlock()
187 lhSize = 3; in ZSTD_decodeLiteralsBlock()
203 return lhSize+litSize; in ZSTD_decodeLiteralsBlock()
212 lhSize = 1; in ZSTD_decodeLiteralsBlock()
216 lhSize = 2; in ZSTD_decodeLiteralsBlock()
220 lhSize = 3; in ZSTD_decodeLiteralsBlock()
[all …]
A Dzstd_decompress.c1844 zds->lhSize = zds->inPos = zds->outStart = zds->outEnd = 0; in ZSTD_decompressStream()
1852 …t hSize = ZSTD_getFrameHeader_advanced(&zds->fParams, zds->headerBuffer, zds->lhSize, zds->format); in ZSTD_decompressStream()
1861 … size_t const toLoad = hSize - zds->lhSize; /* if hSize!=0, hSize > zds->lhSize */ in ZSTD_decompressStream()
1866 ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, remainingInput); in ZSTD_decompressStream()
1867 zds->lhSize += remainingInput; in ZSTD_decompressStream()
1870 …return (MAX((size_t)ZSTD_FRAMEHEADERSIZE_MIN(zds->format), hSize) - zds->lhSize) + ZSTD_blockHeade… in ZSTD_decompressStream()
1873 … ZSTD_memcpy(zds->headerBuffer + zds->lhSize, ip, toLoad); zds->lhSize = hSize; ip += toLoad; in ZSTD_decompressStream()
1911 FORWARD_IF_ERROR(ZSTD_decodeFrameHeader(zds, zds->headerBuffer, zds->lhSize), ""); in ZSTD_decompressStream()
A Dzstd_decompress_internal.h160 size_t lhSize; member

Completed in 34 milliseconds