[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4C53EF30.5020303@davidnewall.com>
Date: Sat, 31 Jul 2010 19:08:56 +0930
From: David Newall <davidn@...idnewall.com>
To: "Luis R. Rodriguez" <mcgrof@...il.com>
CC: linux-kernel@...r.kernel.org,
"doug.dahlby" <Doug.Dahlby@...eros.com>,
Jiri Slaby <jirislaby@...il.com>
Subject: Re: Using unsigned int for loop counters - better performance for
Architectures - urban hacker legend?
I don't know about unsigned int; but looping down to zero should be
faster on many architectures, as they automatically test for zero (or
negative) on decrement. Counting up requires an additional test.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists