[RFC PATCH] Add strcmp, strncmp, memcmp inline implementation.

Alexander Monakov amonakov@ispras.ru
Thu May 28 17:17:00 GMT 2015


On Thu, 28 May 2015, Joseph Myers wrote:
> On Mon, 25 May 2015, Ondøej Bílka wrote:
> 
> > Hi,
> > 
> > I just found that on x64 gcc __builtin_strcmp suck a lot. And by lot I
> > mean its around three times slower than libcall by using rep cmpsb which
> > even intel manual says that shouldn't be used.
> 
> GCC bug report number?  It's not helpful to say "suck a lot" without 
> reporting the issues to the other project (identifying the compiler 
> options etc. in use).  We need to cooperate appropriately with other free 
> software projects in developing glibc.

I think this report should serve well:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43052

Alexander


More information about the Libc-alpha mailing list