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] My turn to rant about types... bitops


On 6 Oct 2005, at 12:28, Jimi Xenidis wrote:

Always the job of the maintainer to ask why :)
Well, since linux bitops use unsigned long, being the largest machine word and therefore the most efficient, we get alignment issues.

The next request is really the jist of what we are after, doing 64bit operations 32bit aligned data kills us performance wise and WRT bitops cannot be used for atomic ops. If htis was just Xen I'd consider adding 32bit bitops but I doubt I'd be able to do that in Linux which does not provide "u32" bitops.

The alignment issue is a fair point. I'll see if changing the type would affect much code.

 -- Keir


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