[Top][All Lists]

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

Re: [Qemu-devel] [PULL 00/16] Migration pull request (v2)

From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PULL 00/16] Migration pull request (v2)
Date: Thu, 07 May 2015 16:56:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

On 07/05/2015 16:43, Eric Blake wrote:
> I wonder if include/qemu/atomic.h could enhance the #define wrappers to
> add no-op compile-time checking, something like (untested):
> #define atomic_add(ptr, n) do { \
>   QEMU_BUILD_BUG_ON(sizeof(ptr) > sizeof(void*)); \
>   __sync_fetch_and_add(ptr, 1); \
> } while (0)

Yes, though it would have to be a statement expression rather than a


reply via email to

[Prev in Thread] Current Thread [Next in Thread]