Searched hist:cb0eae8cf8aaca76910dee4c7eb536d0814d1bd2 (Results 1 – 1 of 1) sorted by relevance
/openbmc/u-boot/lib/ |
H A D | string.c | diff cb0eae8cf8aaca76910dee4c7eb536d0814d1bd2 Wed Apr 05 17:23:31 CDT 2017 Simon Glass <sjg@chromium.org> string: Use memcpy() within memmove() when we can
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@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
|