From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outmail.freedom2surf.net (outmail1.freedom2surf.net [194.106.33.237]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 6A400689FD for ; Thu, 26 Jan 2006 19:08:40 +1100 (EST) Message-ID: <43D808EE.9040906@f2s.com> Date: Wed, 25 Jan 2006 23:25:34 +0000 From: Ian Molton MIME-Version: 1.0 To: Russell King Subject: Re: [PATCH 3/6] C-language equivalents of include/asm-*/bitops.h References: <20060125112625.GA18584@miraclelinux.com> <20060125113206.GD18584@miraclelinux.com> <20060125200250.GA26443@flint.arm.linux.org.uk> In-Reply-To: <20060125200250.GA26443@flint.arm.linux.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linux-mips@linux-mips.org, linux-m68k@vger.kernel.org, linux-ia64@vger.kernel.org, Andi Kleen , David Howells , linuxppc-dev@ozlabs.org, Greg Ungerer , sparclinux@vger.kernel.org, Miles Bader , Yoshinori Sato , Hirokazu Takata , linuxsh-shmedia-dev@lists.sourceforge.net, Linus Torvalds , Ivan Kokshaysky , Richard Henderson , Akinobu Mita , Chris Zankel , dev-etrax@axis.com, ultralinux@vger.kernel.org, linux-kernel@vger.kernel.org, linuxsh-dev@lists.sourceforge.net, linux390@de.ibm.com, parisc-linux@parisc-linux.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Russell King wrote: > This code generates more expensive shifts than our (ARMs) existing C > version. This is a backward step. > > Basically, shifts which depend on a variable are more expensive than > constant-based shifts. arm26 will have the same problem here.