From: Vicent Marti Date: Thu, 23 Jan 2014 21:27:52 +0000 (-0500) Subject: ewah: support platforms that require aligned reads X-Git-Tag: v2.0.0-rc0~148^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a201c20b41a2f0725977bcb89a2a66135d776ba2?ds=inline;hp=a201c20b41a2f0725977bcb89a2a66135d776ba2 ewah: support platforms that require aligned reads The caller may hand us an unaligned buffer (e.g., because it is an mmap of a file with many ewah bitmaps). On some platforms (like SPARC) this can cause a bus error. We can fix it with a combination of get_be32 and moving the data into an aligned buffer (which we would do anyway, but we can move it before fixing the endianness). Signed-off-by: Vicent Marti Signed-off-by: Jeff King Signed-off-by: Junio C Hamano ---