Change the modification of ZSTD_wildcopy()

This commit is contained in:
caoyzh
2020-05-07 13:10:46 -07:00
committed by Nick Terrell
parent a7e34ff693
commit 969ba4f2b9
+6 -1
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
}
}