[U-Boot] [U-Boot, v6, 04/18] string: Use memcpy() within memmove() when we can

Tom Rini trini at konsulko.com
Wed May 10 17:51:44 UTC 2017


On Wed, Apr 05, 2017 at 04:23:31PM -0600, Simon Glass wrote:

> A common use of memmove() can be handled by memcpy(). Also memcpy()
> includes an optimisation 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 memcpy() if the destination is before the source.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> Reviewed-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170510/860b72e8/attachment.sig>


More information about the U-Boot mailing list