This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [PATCH] Improve memccpy performance


> Richard Earnshaw wrote: 
> 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.

If GLIBC inlines mempcpy like I proposed then it would be reasonable
to use mempcpy here as it results in exactly the same code.

Wilco




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]