Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <18752.14748.408940.386056@cargo.ozlabs.ibm.com> Date: Thu, 11 Dec 2008 08:50:20 +1100 From: Paul Mackerras To: David Howells Subject: Re: Re[2]: [PATCH] fork_init: fix division by zero In-Reply-To: <5545.1228914404@redhat.com> References: <1795455197.20081210132912@emcraft.com> <200812092044.40649.yur@emcraft.com> <503391615.20081210130113@emcraft.com> <20081210101745.GG28946@ZenIV.linux.org.uk> <5545.1228914404@redhat.com> Cc: Wolfgang Denk , Detlev Zundel , linux-kernel@vger.kernel.org, Milton Miller , linuxppc-dev@ozlabs.org, Al Viro , Geert Uytterhoeven , Ilya Yanok List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , David Howells writes: > Ummm... On powerpc, I believe rotate-left would be a division as it does the > bit-numbering and the bit direction the opposite way to more familiar CPUs > such as x86. No. :) "Left" and "right" are relative to the way those of us humans in the Western European cultural tradition write numbers, which is big-endian. So rotate-left always moves bits towards the more significant end of the word. Paul.