[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 09/23] lz4: add support for OSes that don't have asm/unaligned.h
Not sure about which version of lz4 source code is used,
so my comment may be out of context, but for your information, the C code provided atÂhttps://code.google.com/p/lz4/
already handles unaligned access on strict align CPU. The method is close or the same as the one described intoÂasm/unaligned.h :
but directly integrated into lz4.c source file.
The method rely on the compiler to automatically determine if the target system requires extra-caution for unaligned access, but sometimes, the compiler can be over-cautious (typically for ARM target).
Therefore, a manual override is also provided, near the top of the lz4.c source file :
Hope it helps. Regards 2014-04-22 18:40 GMT+02:00 Roger Pau Monnà <roger.pau@xxxxxxxxxx>:
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |