From c8a573d32c3347285d09154ed6d1a55af52655bc Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Wed, 29 Jun 2016 15:04:19 +0200 Subject: very minor decompression speed gain --- lib/lz4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lz4.c b/lib/lz4.c index cf889d5..ba8e462 100644 --- a/lib/lz4.c +++ b/lib/lz4.c @@ -1146,7 +1146,7 @@ FORCE_INLINE int LZ4_decompress_generic( /* Special cases */ - if ((partialDecoding) && (oexit> oend-MFLIMIT)) oexit = oend-MFLIMIT; /* targetOutputSize too high => decode everything */ + if ((partialDecoding) && (oexit > oend-MFLIMIT)) oexit = oend-MFLIMIT; /* targetOutputSize too high => decode everything */ if ((endOnInput) && (unlikely(outputSize==0))) return ((inputSize==1) && (*ip==0)) ? 0 : -1; /* Empty output buffer */ if ((!endOnInput) && (unlikely(outputSize==0))) return (*ip==0?1:-1); @@ -1165,7 +1165,7 @@ FORCE_INLINE int LZ4_decompress_generic( do { s = *ip++; length += s; - } while ( likely(endOnInput ? ip