shawn wrote:

>                                             And why do a copy when you
> don't have to? 

It's how you perform an unaligned access in C.  The copy is optimized
away on platforms that allow that.

If the question is "why rename the data member", the answer is that
that prevents new unaligned accesses from being introduced without
anyone noticing.

If the question is "why not use memcmp()", the answer is that memcmp
does a big-endian comparison but the expected semantics here are
little-endian.

Hope that helps,
Jonathan



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to