This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Improve memccpy performance
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: Roland McGrath <roland at hack dot frob dot com>, Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- Cc: "libc-alpha at sourceware dot org" <libc-alpha at sourceware dot org>
- Date: Thu, 15 Jan 2015 10:45:59 +0000
- Subject: Re: [PATCH] Improve memccpy performance
- Authentication-results: sourceware.org; auth=none
- References: <001f01d03004$e05abdb0$a1103910$ at com> <20150114181430 dot C9E062C39DB at topped-with-meat dot com>
On 14/01/15 18:14, Roland McGrath wrote:
>> + return memcpy (dest, src, n) + n;
>
> Use __mempcpy here.
>
That will be worse if mempcpy just calls memcpy; which is what the C
library implementation does.
R.