[PATCH v2] string: Use memcpy() within memmove() when we can
Tom Rini
trini at konsulko.com
Mon Jan 18 14:01:29 CET 2021
On Fri, Dec 11, 2020 at 02:59:23PM +0100, Patrick Delaunay wrote:
> 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: Patrick Delaunay <patrick.delaunay at foss.st.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210118/e61688a3/attachment.sig>
More information about the U-Boot
mailing list