]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Search One Last Position
authorW. Felix Handte <w@felixhandte.com>
Wed, 8 Sep 2021 20:41:43 +0000 (16:41 -0400)
committerW. Felix Handte <w@felixhandte.com>
Tue, 5 Oct 2021 18:54:37 +0000 (14:54 -0400)
lib/compress/zstd_double_fast.c

index 4ac44894b34abd38bafd9ae3c28dde531d87dacf..a85d68f01ca3cdce8ed58c7db613b87a8e90ddf2 100644 (file)
@@ -111,7 +111,7 @@ _start:
     nextStep = ip + kStepIncr;
     ip1 = ip + step;
 
-    if (ip1 >= ilimit) {
+    if (ip1 > ilimit) {
         goto _cleanup;
     }
 
@@ -173,7 +173,7 @@ _start:
 #if defined(__aarch64__)
         PREFETCH_L1(ip+256);
 #endif
-    } while (ip1 < ilimit);
+    } while (ip1 <= ilimit);
 
 _cleanup:
     /* save reps for next block */