>>> On 08.09.15 at 09:37, <feng...@intel.com> wrote: > Thanks for your suggestion. How about this? > > #define cmpxchg16b(ptr,o,n) \ > ( ({ ASSERT(((unsigned long)ptr & 0xF) == 0); }), \ > BUILD_BUG_ON(sizeof(*o) != sizeof(__uint128_t)), \ > BUILD_BUG_ON(sizeof(*n) != sizeof(__uint128_t)), \ > __cmpxchg16b((ptr), (__uint128_t *)(o), (__uint128_t *)(n)) )
Yes (properly parenthesized and the ({ }) either removed or extended to the whole expression). Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel