]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
Change the modification of ZSTD_wildcopy()
authorcaoyzh <caoyazhen_ok@163.com>
Tue, 14 Apr 2020 13:33:25 +0000 (21:33 +0800)
committerNick Terrell <nickrterrell@gmail.com>
Thu, 7 May 2020 20:10:46 +0000 (13:10 -0700)
lib/common/zstd_internal.h

index 009d8427c1fff7e66afe10e5cfe5fa13754f392a..3bc7e55a0a97aa7e9dfb8ef7eb0fd76d7dfb374f 100644 (file)
@@ -285,14 +285,19 @@ void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e
          * at that point it is more likely to have a high trip count.
          */
 #ifndef __aarch64__
+        do {
+            COPY16(op, ip);
+        }
+        while (op < oend);
+#else
         COPY16(op, ip);
         if (op >= oend) return;
-#endif
         do {
             COPY16(op, ip);
             COPY16(op, ip);
         }
         while (op < oend);
+#endif
     }
 }