Re: 2.1.120pre2: Bug in strnicmp() noted in 2.1.119pre1 is still there!

Linus Torvalds (torvalds@transmeta.com)
Mon, 31 Aug 1998 15:00:24 -0700 (PDT)


On Mon, 31 Aug 1998, Hans Eric wrote:
>
> Cool, creative use of gotos keeps nested ifs to a minimum. Since this seems to
> be hand optimized code you might as well move s1++;s2++ after the if
> statements to save some cycles. That is if the compiler does'nt catch it.

Actually, it's done the way it's done exactly to _not_ let the compiler
catch on.

In most architectures there's a load-use penalty, so doing the load and
immediately testing for zero is bad - while doing the load and updating
the address can essentially be done in parallel.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html