From: caoyzh Date: Tue, 14 Apr 2020 13:33:25 +0000 (+0800) Subject: Change the modification of ZSTD_wildcopy() X-Git-Tag: v1.4.5^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=969ba4f2b92441eb0aeff4ccdb4b76bf969c30d2;p=thirdparty%2Fzstd.git Change the modification of ZSTD_wildcopy() --- diff --git a/lib/common/zstd_internal.h b/lib/common/zstd_internal.h index 009d8427c..3bc7e55a0 100644 --- a/lib/common/zstd_internal.h +++ b/lib/common/zstd_internal.h @@ -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 } }