<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Tue, Sep 18, 2018 at 12:50 AM Eric Blake <<a href="mailto:eblake@redhat.com">eblake@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 9/17/18 4:41 PM, Nir Soffer wrote:<br>
<br>
> The FreeBSD version:<br>
> <br>
> #define IS_ALIGNED <<a href="http://fxr.watson.org/fxr/ident?i=IS_ALIGNED" rel="noreferrer" target="_blank">http://fxr.watson.org/fxr/ident?i=IS_ALIGNED</a>>(n<br>
> <<a href="http://fxr.watson.org/fxr/ident?i=n" rel="noreferrer" target="_blank">http://fxr.watson.org/fxr/ident?i=n</a>>,align)     (!((uint32_t)(n<br>
> <<a href="http://fxr.watson.org/fxr/ident?i=n" rel="noreferrer" target="_blank">http://fxr.watson.org/fxr/ident?i=n</a>>) & (align - 1)))<br>
> <br>
> <a href="http://fxr.watson.org/fxr/source/contrib/ncsw/inc/ncsw_ext.h#L182" rel="noreferrer" target="_blank">http://fxr.watson.org/fxr/source/contrib/ncsw/inc/ncsw_ext.h#L182</a><br>
<br>
Which truncates to 32 bits.  But that's what we're trying to get rid of <br>
- by moving to a macro that lets us do full 64-bit alignment if needed.<br></blockquote><div><br></div><div>My point is that we don't need to use full 64-bit, so there is nothing to</div><div>get rid of.</div><div><br></div><div>Nir</div></div></div>