On 2011-07-09, Christian Weisgerber <na...@mips.inka.de> wrote: > Stuart Henderson <s...@spacehopper.org> wrote: > >> updated tgz attached. any OKs to import? > > This doesn't build on sparc64. > > Also, this section in snappy-internal.h may need some review: > > // Potentially unaligned loads and stores. > #if defined(__i386__) || defined(__x86_64__) || defined(__powerpc__) > > Miod tells me we don't do unaligned accesses on powerpc.
Updated version attached fixes build on BE machines, the tests do successfully complete on macppc even with unaligned loads and stores. So I'm tempted to leave them enabled as doing the memcpy() to avoid unaligned access has a 25-30% speed penalty on my Mac mini (but have added a comment to the patch to make it easier to find if people notice problems later).
snappy.tgz
Description: application/tar-gz