This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][AArch64] Inline mempcpy
- From: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- To: libc-alpha at sourceware dot org
- Date: Wed, 29 Apr 2015 10:56:32 -0300
- Subject: Re: [PATCH][AArch64] Inline mempcpy
- Authentication-results: sourceware.org; auth=none
- References: <000101d080db$904af8d0$b0e0ea70$ at com> <D1360FBA-8A28-4824-8069-778609B16378 at gmail dot com> <000801d08100$753c65e0$5fb531a0$ at com>
On 27-04-2015 12:40, Wilco Dijkstra wrote:
>> pinskia@gmail.com wrote:
>>> On Apr 27, 2015, at 4:16 AM, Wilco Dijkstra <wdijkstr@arm.com> wrote:
>>>
>>> Add inlining of mempcpy on AArch64 to expand into memcpy.
>>>
>>> OK for commit?
>>
>> This seems like this should be part of generic code rather than aarch64 specific versions.
>
> Absolutely, but the question is what is the best way of doing that? Some targets may want
> to keep using their assembler mempcpy implementation.
>
> Wilco
>
My first though is to add it on string/bits/string2.h and then adjust the
bits/strings.h for each arch. However seems that only s390 is really
defining _HAVE_STRING_ARCH_xxxx. So you can start with aarch64 and
then we can check for the remaining ports.