libc/string/strrchr.c

Christopher Faylor cgf@redhat.com
Fri May 4 08:41:00 GMT 2001


On Thu, May 03, 2001 at 08:13:31PM -0400, DJ Delorie wrote:
>
>> 2001-05-03  Earnie Boyd  <earnie@users.sourceforge.net>
>> 
>> 	* libc/string/strrchr.c: Use strchr for the speed improvements.
>
>Perhaps you could contribute an i386-specific assembler version of
>strrchr?  That should be even faster, and will benefit all i386
>systems.

I'm working on one now.  It will be cygwin-specific, though.  I'd like
to make it an inline function.

I appreciate that Earnie has detected a bottleneck but I think that
inline assembly will be the way to go.

In my tests this gives an immediate 6 - 7% performance improvement.

Regardless, I think that the newlib change is still a good idea.

cgf



More information about the Newlib mailing list