Skip to content
Commit 5b97cb1a authored by Patrick Delaunay's avatar Patrick Delaunay Committed by Tom Rini
Browse files

string: Use memcpy() within memmove() when we can



A common use of memmove() can be handled by memcpy(). Also memcpy()
includes an optimization for large sizes: it copies a word at a time. So
we can get a speed-up by calling memcpy() to handle our move in this case.

Update memmove() to call also memcpy() if the source don't overlap
the destination (src + count <= dest).

Signed-off-by: default avatarPatrick Delaunay <patrick.delaunay@foss.st.com>
parent 71e683c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment