Home
last modified time | relevance | path

Searched refs:cLitSize (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/lib/zstd/compress/
Dzstd_compress_literals.c83 size_t cLitSize; in ZSTD_compressLiterals() local
104 cLitSize = singleStream ? in ZSTD_compressLiterals()
120 if ((cLitSize==0) | (cLitSize >= srcSize - minGain) | ERR_isError(cLitSize)) { in ZSTD_compressLiterals()
124 if (cLitSize==1) { in ZSTD_compressLiterals()
138 … { U32 const lhc = hType + ((!singleStream) << 2) + ((U32)srcSize<<4) + ((U32)cLitSize<<14); in ZSTD_compressLiterals()
143 { U32 const lhc = hType + (2 << 2) + ((U32)srcSize<<4) + ((U32)cLitSize<<18); in ZSTD_compressLiterals()
148 { U32 const lhc = hType + (3 << 2) + ((U32)srcSize<<4) + ((U32)cLitSize<<22); in ZSTD_compressLiterals()
150 ostart[4] = (BYTE)(cLitSize >> 10); 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()
Dzstd_compress_superblock.c333 size_t cLitSize = 0; in ZSTD_compressSubBlock_literal() local
354 cLitSize += hufMetadata->hufDesSize; in ZSTD_compressSubBlock_literal()
362 cLitSize += cSize; in ZSTD_compressSubBlock_literal()
368 if (!writeEntropy && cLitSize >= litSize) { in ZSTD_compressSubBlock_literal()
373 if (lhSize < (size_t)(3 + (cLitSize >= 1 KB) + (cLitSize >= 16 KB))) { in ZSTD_compressSubBlock_literal()
374 assert(cLitSize > litSize); in ZSTD_compressSubBlock_literal()
385 … { U32 const lhc = hType + ((!singleStream) << 2) + ((U32)litSize<<4) + ((U32)cLitSize<<14); in ZSTD_compressSubBlock_literal()
390 { U32 const lhc = hType + (2 << 2) + ((U32)litSize<<4) + ((U32)cLitSize<<18); in ZSTD_compressSubBlock_literal()
395 { U32 const lhc = hType + (3 << 2) + ((U32)litSize<<4) + ((U32)cLitSize<<22); in ZSTD_compressSubBlock_literal()
397 ostart[4] = (BYTE)(cLitSize >> 10); in ZSTD_compressSubBlock_literal()
[all …]