WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] page_alloc query

To: Jan Beulich <jbeulich@xxxxxxxxxx>
Subject: Re: [Xen-devel] page_alloc query
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Wed, 07 Mar 2007 09:40:03 +0000
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Ben Thomas <bthomas@xxxxxxxxxxxxxxx>
Delivery-date: Wed, 07 Mar 2007 01:42:23 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <45EE915A.76E4.0078.0@xxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcdgnJS+0xII/8yPEduzHQAX8io7RQ==
Thread-topic: [Xen-devel] page_alloc query
User-agent: Microsoft-Entourage/11.2.5.060620


On 7/3/07 09:18, "Jan Beulich" <jbeulich@xxxxxxxxxx> 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>