]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Tweak Step
authorW. Felix Handte <w@felixhandte.com>
Fri, 20 Aug 2021 21:06:41 +0000 (17:06 -0400)
committerW. Felix Handte <w@felixhandte.com>
Wed, 1 Sep 2021 18:15:04 +0000 (14:15 -0400)
lib/compress/zstd_fast.c

index 9b40558e197c33c116abe1e30a2e1b268fed5856..d60a0bbe5ae7dcc0b7e4e23396e4247c246f4153 100644 (file)
@@ -340,7 +340,6 @@ _start: /* Requires: ip0 */
         ip0 = ip1;
         ip1 = ip2;
         ip2 = ip3;
-        ip3 += step;
 
         /* write back hash table entry */
         current0 = ip0 - base;
@@ -377,8 +376,8 @@ _start: /* Requires: ip0 */
         /* advance to next positions */
         ip0 = ip1;
         ip1 = ip2;
-        ip2 = ip3;
-        ip3 += step;
+        ip2 = ip2 + step;
+        ip3 = ip2 + step;
     } while (ip3 < ilimit);
 
 _cleanup: