From 969ba4f2b92441eb0aeff4ccdb4b76bf969c30d2 Mon Sep 17 00:00:00 2001 From: caoyzh Date: Tue, 14 Apr 2020 21:33:25 +0800 Subject: [PATCH] Change the modification of ZSTD_wildcopy() --- lib/common/zstd_internal.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } } -- 2.47.2