[PATCH] Use memcpy in memmove when possible
Maxim Kuvyrkov
maxim@codesourcery.com
Sat Sep 1 08:16:00 GMT 2012
Several architectures, e.g., MIPS, have well-optimized memcpy implementations, which can also be used for either forward or backward direction in memmove. This patch adds an option for ports to define MEMCPY_OK_FOR_{FWD,BWD}_MEMMOVE macros to make generic memmove use memcpy when safe to do so.
This patch speeds up forward-direction memmove on MIPS by 50%. Tested with no regressions.
OK to apply?
--
Maxim Kuvyrkov
CodeSourcery / Mentor Graphics
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Use-memcpy-in-memmove-when-possible.patch
Type: application/octet-stream
Size: 3418 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120901/6d5e4004/attachment.obj>
More information about the Libc-alpha
mailing list