Home
last modified time | relevance | path

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

/openbmc/linux/lib/lz4/
H A Dlz4hc_compress.c556 int lastRun = (int)(iend - anchor); in LZ4HC_compress_generic() local
559 && (((char *)op - dest) + lastRun + 1 in LZ4HC_compress_generic()
560 + ((lastRun + 255 - RUN_MASK)/255) in LZ4HC_compress_generic()
565 if (lastRun >= (int)RUN_MASK) { in LZ4HC_compress_generic()
567 lastRun -= RUN_MASK; in LZ4HC_compress_generic()
568 for (; lastRun > 254 ; lastRun -= 255) in LZ4HC_compress_generic()
570 *op++ = (BYTE) lastRun; in LZ4HC_compress_generic()
572 *op++ = (BYTE)(lastRun<<ML_BITS); in LZ4HC_compress_generic()
H A Dlz4_compress.c431 size_t const lastRun = (size_t)(iend - anchor); in LZ4_compress_generic() local
435 ((op - (BYTE *)dest) + lastRun + 1 + in LZ4_compress_generic()
436 ((lastRun + 255 - RUN_MASK) / 255) > (U32)maxOutputSize)) in LZ4_compress_generic()
439 if (lastRun >= RUN_MASK) { in LZ4_compress_generic()
440 size_t accumulator = lastRun - RUN_MASK; in LZ4_compress_generic()
446 *op++ = (BYTE)(lastRun << ML_BITS); in LZ4_compress_generic()
449 LZ4_memcpy(op, anchor, lastRun); in LZ4_compress_generic()
451 op += lastRun; in LZ4_compress_generic()