mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-24 05:01:43 +00:00
COMMON: Use memcpy instead of memmove
memove was used although the buffers were not overlapping. Using memcpy allows for better optimizations by compiler.
This commit is contained in:
parent
5edf74d8a6
commit
191bde03ad
@ -580,7 +580,7 @@ GzioReadStream::inflate_codes_in_window()
|
||||
|
||||
if (w - d >= e)
|
||||
{
|
||||
memmove (_slide + w, _slide + d, e);
|
||||
memcpy (_slide + w, _slide + d, e);
|
||||
w += e;
|
||||
d += e;
|
||||
}
|
||||
@ -1083,7 +1083,7 @@ GzioReadStream::readAtOffset (int64 offset, byte *buf, uint32 len)
|
||||
if (size > len)
|
||||
size = len;
|
||||
|
||||
memmove (buf, srcaddr, size);
|
||||
memcpy (buf, srcaddr, size);
|
||||
|
||||
buf += size;
|
||||
len -= size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user