Optimize ZSTD_wildcopy
This commit is contained in:
parent
6de87b3a74
commit
82b0cd844f
@ -290,8 +290,10 @@ void ZSTD_wildcopy(void* dst, const void* src, ptrdiff_t length, ZSTD_overlap_e
|
|||||||
}
|
}
|
||||||
while (op < oend);
|
while (op < oend);
|
||||||
#else
|
#else
|
||||||
COPY16(op, ip);
|
memcpy(op, ip, 16);
|
||||||
if (op >= oend) return;
|
if (16 >= length) return;
|
||||||
|
op += 16;
|
||||||
|
ip += 16;
|
||||||
do {
|
do {
|
||||||
COPY16(op, ip);
|
COPY16(op, ip);
|
||||||
COPY16(op, ip);
|
COPY16(op, ip);
|
||||||
|
Loading…
Reference in New Issue
Block a user