Change the modification of ZSTD_wildcopy()

This commit is contained in:
caoyzh 2020-04-14 21:33:25 +08:00 committed by Nick Terrell
parent a7e34ff693
commit 969ba4f2b9

View 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
}
}