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. --