Home
last modified time | relevance | path

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

/linux-6.1.9/lib/lz4/
Dlz4_compress.c690 size_t lastRunSize = (size_t)(iend - anchor); in LZ4_compress_destSize_generic() local
693 + ((lastRunSize + 240) / 255) /* litLength */ in LZ4_compress_destSize_generic()
694 + lastRunSize /* literals */ > oend) { in LZ4_compress_destSize_generic()
696 lastRunSize = (oend - op) - 1; in LZ4_compress_destSize_generic()
697 lastRunSize -= (lastRunSize + 240) / 255; in LZ4_compress_destSize_generic()
699 ip = anchor + lastRunSize; in LZ4_compress_destSize_generic()
701 if (lastRunSize >= RUN_MASK) { in LZ4_compress_destSize_generic()
702 size_t accumulator = lastRunSize - RUN_MASK; in LZ4_compress_destSize_generic()
709 *op++ = (BYTE)(lastRunSize<<ML_BITS); in LZ4_compress_destSize_generic()
711 LZ4_memcpy(op, anchor, lastRunSize); in LZ4_compress_destSize_generic()
[all …]