commit | 03f827e820141b2ddf18acc7a41f972b612daa6b | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Wed Apr 05 16:23:31 2017 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue May 09 20:19:04 2017 -0400 |
tree | 8e4bb6377bcafcd626ed0bcbcdf960fad5cd1ceb | |
parent | b8fa836e51feb92bf150ff00b90506002e1bc02a [diff] |
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>