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

[Xen-devel] Re: My turn to rant about types... bitops

Jimi Xenidis <jimix@xxxxxxxxxxxxxx> writes:
> 
> 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.

Actually it does - when the arch has ARCH_HAS_ATOMIC_UNSIGNED set
it's allowed with the normal bitops.
 
> IIRC assuring this alignement would even help x86, no?

I doubt it (unless you're straddling a cache line) 

-Andi

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