Re: [PATCH 2/2] Remove x86 cmpstrnsi

2014-09-27 Thread Andi Kleen
On Sat, Sep 27, 2014 at 08:45:18PM +0200, Oleg Endo wrote: > On Sat, 2014-09-27 at 11:10 -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > In my tests the optimized glibc out of line strcmp is always faster than > > using inline rep ; cmpsb, even for small strings. The Intel optimization > >

Re: [PATCH 2/2] Remove x86 cmpstrnsi

2014-09-27 Thread Oleg Endo
On Sat, 2014-09-27 at 11:10 -0700, Andi Kleen wrote: > From: Andi Kleen > > In my tests the optimized glibc out of line strcmp is always faster than > using inline rep ; cmpsb, even for small strings. The Intel optimization > manual > also recommends to not use it. So remove the cmpstrnsi instru