From: Ian Jackson Subject: Re: [PATCH] linux/x86: convert 'cpu' (and a few other) variables to unsigned Date: Fri, 18 Jan 2008 16:16:57 +0000 Message-ID: <18320.53497.157752.151108@mariner.uk.xensource.com> References: <4790DC8F.76E4.0078.0@novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4790DC8F.76E4.0078.0@novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Jan Beulich writes ("[Xen-devel] [PATCH] linux/x86: convert 'cpu' (and a few other) variables to unsigned"): > .. producing better code for x86-64. > > As usual, written and tested on 2.6.24-rc7 and made apply to the 2.6.18 > tree without further testing. In what way does this produce better code for x86-64 ? Normally it's IMO best practice to avoid `unsigned' other than for bitfields, clock arithmetic, and the like, because the behaviour of unsigned in the presence of subtraction and comparision is often surprising. Ian.