Lines Matching refs:lastRunSize
658 { size_t lastRunSize = (size_t)(iend - anchor); /* literals */ in LZ4HC_compress_hashChain() local
659 size_t litLength = (lastRunSize + 255 - RUN_MASK) / 255; in LZ4HC_compress_hashChain()
660 size_t const totalSize = 1 + litLength + lastRunSize; in LZ4HC_compress_hashChain()
665 lastRunSize = (size_t)(oend - op) - 1; in LZ4HC_compress_hashChain()
666 litLength = (lastRunSize + 255 - RUN_MASK) / 255; in LZ4HC_compress_hashChain()
667 lastRunSize -= litLength; in LZ4HC_compress_hashChain()
669 ip = anchor + lastRunSize; in LZ4HC_compress_hashChain()
671 if (lastRunSize >= RUN_MASK) { in LZ4HC_compress_hashChain()
672 size_t accumulator = lastRunSize - RUN_MASK; in LZ4HC_compress_hashChain()
677 *op++ = (BYTE)(lastRunSize << ML_BITS); in LZ4HC_compress_hashChain()
679 memcpy(op, anchor, lastRunSize); in LZ4HC_compress_hashChain()
680 op += lastRunSize; in LZ4HC_compress_hashChain()
1377 { size_t lastRunSize = (size_t)(iend - anchor); /* literals */ in LZ4HC_compress_optimal() local
1378 size_t litLength = (lastRunSize + 255 - RUN_MASK) / 255; in LZ4HC_compress_optimal()
1379 size_t const totalSize = 1 + litLength + lastRunSize; in LZ4HC_compress_optimal()
1384 lastRunSize = (size_t)(oend - op) - 1; in LZ4HC_compress_optimal()
1385 litLength = (lastRunSize + 255 - RUN_MASK) / 255; in LZ4HC_compress_optimal()
1386 lastRunSize -= litLength; in LZ4HC_compress_optimal()
1388 ip = anchor + lastRunSize; in LZ4HC_compress_optimal()
1390 if (lastRunSize >= RUN_MASK) { in LZ4HC_compress_optimal()
1391 size_t accumulator = lastRunSize - RUN_MASK; in LZ4HC_compress_optimal()
1396 *op++ = (BYTE)(lastRunSize << ML_BITS); in LZ4HC_compress_optimal()
1398 memcpy(op, anchor, lastRunSize); in LZ4HC_compress_optimal()
1399 op += lastRunSize; in LZ4HC_compress_optimal()