[U-Boot] [PATCH] lib/string: memmove: use memcpy if it is safe to do so

Wolfgang Denk wd at denx.de
Fri Oct 28 22:25:30 CEST 2011


Dear Peter Korsgaard,

In message <1319789046-17715-1-git-send-email-jacmet at sunsite.dk> you wrote:
> memmove is used in a number of performance critical places, like copying the
> linux kernel from nor flash to ram, so optimizing it can be interesting.
> 
> Unfortunately, an arch specific version of memmove often isn't used, and
> not supported at all on a number of archs (arm/mips/nds32/nios2/x86) -
> But memcpy typically is.

So you are adding code, making the system even less efficient?  This
sounds to be acounter-productive approach.

Can you not instead arrange for arch specific, optimized versions
memmove() to be used?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Uncertain fortune is thoroughly mastered by the equity of the  calcu-
lation.                                               - Blaise Pascal


More information about the U-Boot mailing list