|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 1/2] x86: simplify nonâatomic bitops
On 26/03/15 08:00, Jan Beulich wrote: On 25.03.15 at 18:49, <andrew.cooper3@xxxxxxxxxx> wrote:On 20/03/15 14:53, Jan Beulich wrote: Presumably some code was lacking barrier()s We could still try whether this works in Xen, but in another patch. Apart from that I doubt the operation above would reliably get converted to BTS by the compiler (independent of version). Ok - lets leave that for v2. Both patches Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> (On a separate note, I feel that all of these operations should be acting on unsigned rather than signed ints, but that applies to all of these operations, not just the non-atomic ones)That makes zero difference for these ops - all that really matters is the width. In the C version above however I agree that using "unsigned int" would be more natural. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |