Re: micro-optimize nbtcompare.c routines

2024-09-27 Thread Nathan Bossart
I've marked this one as Withdrawn. Apologies for the noise. -- nathan

Re: micro-optimize nbtcompare.c routines

2024-09-26 Thread Nathan Bossart
On Fri, Sep 27, 2024 at 02:50:13PM +1200, David Rowley wrote: > I had been looking at [1] (which I've added your version to now). I > had been surprised to see gcc emitting different code for the first 3 > versions. Clang does a better job at figuring out they all do the same > thing and emitting t

Re: micro-optimize nbtcompare.c routines

2024-09-26 Thread David Rowley
On Fri, 27 Sept 2024 at 08:17, Nathan Bossart wrote: > Here's a patch that adjusts several routines in nbtcompare.c and related > files to use the branchless integer comparison functions added in commit > 6b80394. It's probably unlikely this produces a measurable benefit (at > least I've been una