From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keir Fraser Subject: Re: page_alloc query Date: Wed, 07 Mar 2007 09:40:03 +0000 Message-ID: References: <45EE915A.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: <45EE915A.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, Ben Thomas List-Id: xen-devel@lists.xenproject.org On 7/3/07 09:18, "Jan Beulich" wrote: >> And I really think using signed variables for array indices is odd - it >> performs >> worse on x86-64/ia64 at least (because of the extra sign extension, whereas >> the zero extension is implied in most/some operations), and it certainly is >> contrary to how arrays work (they don't normally have fields accessible with >> negative indices). > > e.g. by instead doing > > for ( zone = zone_hi + 1; zone-- > zone_lo; ) > > Jan Hmmm... Yeah, okay. -- Keir