Optimize ZSTD_wildcopy

This commit is contained in:
helloguo 2020-07-27 22:08:52 -07:00
parent 6de87b3a74
commit 82b0cd844f

View File

@ -290,8 +290,10 @@ void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e
}
while (op < oend);
#else
COPY16(op, ip);
if (op >= oend) return;
memcpy(op, ip, 16);
if (16 >= length) return;
op += 16;
ip += 16;
do {
COPY16(op, ip);
COPY16(op, ip);