diff options
| author | Patrick Delaunay <patrick.delaunay@foss.st.com> | 2020-12-11 14:59:23 +0100 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2021-01-16 14:49:09 -0500 |
| commit | 976a68a20d366e6497253bad9fe0d7a8e42a611c (patch) | |
| tree | f4b242d831693ea73264ed44cb06d6f0912e83d4 /include/linux/linux_string.h | |
| parent | 67b2ed024373f830ffe10fd19b2533d093664ec8 (diff) | |
| download | u-boot-976a68a20d366e6497253bad9fe0d7a8e42a611c.tar.gz u-boot-976a68a20d366e6497253bad9fe0d7a8e42a611c.tar.xz u-boot-976a68a20d366e6497253bad9fe0d7a8e42a611c.zip | |
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: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'include/linux/linux_string.h')
0 files changed, 0 insertions, 0 deletions
