On Tue, Sep 18, 2018 at 12:50 AM Eric Blake <eblake(a)redhat.com> wrote:
On 9/17/18 4:41 PM, Nir Soffer wrote:
> The FreeBSD version:
>
> #define IS_ALIGNED <
http://fxr.watson.org/fxr/ident?i=IS_ALIGNED>(n
> <
http://fxr.watson.org/fxr/ident?i=n>,align) (!((uint32_t)(n
> <
http://fxr.watson.org/fxr/ident?i=n>) & (align - 1)))
>
>
http://fxr.watson.org/fxr/source/contrib/ncsw/inc/ncsw_ext.h#L182
Which truncates to 32 bits. But that's what we're trying to get rid of
- by moving to a macro that lets us do full 64-bit alignment if needed.
My point is that we don't need to use full 64-bit, so there is nothing to
get rid of.
Nir