[PATCH xserver 3/2] Rewrite the byte swapping macros.
eric at anholt.net
Thu Mar 30 15:44:06 UTC 2017
Keith Packard <keithp at keithp.com> writes:
> [ Unknown signature status ]
> Eric Anholt <eric at anholt.net> writes:
>> Unaligned accesses trap on some platforms, and I don't think we're
>> guaranteed that the caller has the pointer aligned (at least, the
>> previous code seemed pretty clearly to be trying to work around that, as
> If it's protocol, then everything is aligned as long as the start of the
> request is aligned.
I've taken a look through the tree, and everything I've looked at
*looks* safe. Still, I'd like to relax the alignment requirement after
this patch, in case we have to revert.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 832 bytes
Desc: not available
More information about the xorg-devel