
17 Jan
2024
17 Jan
'24
3:26 p.m.
On Wed, Jan 03, 2024 at 11:47:03AM +0100, Rasmus Villemoes wrote:
There's no 'mv' shell command for handling overlapping src and dst regions, and there's no point introducing one, when we can just make the existing 'cp' command DTRT in all cases. memmove() should at most be a few instructions more then memcpy() (to detect the appropriate direction to do the copy), which is of course completely in the noise with all the string processing that a shell command does.
Reviewed-by: Simon Glass sjg@chromium.org Signed-off-by: Rasmus Villemoes rasmus.villemoes@prevas.dk
For the series, applied to u-boot/master, thanks!
--
Tom