[PATCH] Expand mempcpy into memcpy

Ondřej Bílka neleai@seznam.cz
Wed Feb 6 21:17:00 GMT 2013


On Wed, Feb 06, 2013 at 03:51:00PM -0500, David Miller wrote:
> From: Ondřej Bílka <neleai@seznam.cz>
> Date: Wed, 6 Feb 2013 21:38:48 +0100
> 
> > Perhaps best way is use my header as default and architectures with optimized
> > mempcpy need to enable it with _HAVE_STRING_ARCH_mempcpy.
> 
> I personally would rather have the default be the other way around,
> this is a non-intuitive thing to have to "discover" that you have
> to do when you optimize mempcpy properly.

I do not know how have this default and optimize away call in nonugly
way. My two ideas are:
1. Add corresponding header to all ports and remember to copy it when
new port is created.
2. Add to test if ports/.../mempcpy.[cS] is present into makefile and 
enable it when it is not. 



More information about the Libc-alpha mailing list