[lkml]   [2010]   [Jul]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: 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.

 \ /
  Last update: 2010-07-31 11:41    [from the cache]
©2003-2011 Jasper Spaans