Skip to content

Commit 969ba4f

Browse files
caoyzhterrelln
authored andcommitted
Change the modification of ZSTD_wildcopy()
1 parent a7e34ff commit 969ba4f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/common/zstd_internal.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,19 @@ void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e
285285
* at that point it is more likely to have a high trip count.
286286
*/
287287
#ifndef __aarch64__
288+
do {
289+
COPY16(op, ip);
290+
}
291+
while (op < oend);
292+
#else
288293
COPY16(op, ip);
289294
if (op >= oend) return;
290-
#endif
291295
do {
292296
COPY16(op, ip);
293297
COPY16(op, ip);
294298
}
295299
while (op < oend);
300+
#endif
296301
}
297302
}
298303

0 commit comments

Comments
 (0)