lkml.org 
[lkml]   [1998]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 2.1.120pre2: Bug in strnicmp() noted in 2.1.119pre1 is still there!


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

\
 
 \ /
  Last update: 2005-03-22 13:44    [from the cache]
©2003-2011 Jasper Spaans