[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] linux/x86: convert 'cpu' (and a few other) variables to unsigned



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.

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.