From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755547Ab0GaJjF (ORCPT ); Sat, 31 Jul 2010 05:39:05 -0400 Received: from hawking.rebel.net.au ([203.20.69.83]:40627 "EHLO hawking.rebel.net.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751137Ab0GaJjB (ORCPT ); Sat, 31 Jul 2010 05:39:01 -0400 Message-ID: <4C53EF30.5020303@davidnewall.com> Date: Sat, 31 Jul 2010 19:08:56 +0930 From: David Newall User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "Luis R. Rodriguez" CC: linux-kernel@vger.kernel.org, "doug.dahlby" , Jiri Slaby Subject: Re: Using unsigned int for loop counters - better performance for Architectures - urban hacker legend? References: In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.