mirror of https://github.com/vasi/pixz
Avoid unaligned accesses
Architectures like SPARC do not allow unaligned accesses. Avoid them by memcpy()ing the data to an aligned buffer. On x86 systems where unaligned loads are fast, the memcpy() will be compiled away and the same code generated as before.pull/82/head
parent
00e62fe45a
commit
8b9a198d86
Loading…
Reference in New Issue