This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Expand mempcpy into memcpy
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.