From: Nicolas Pitre Date: Thu, 13 Aug 2009 04:29:14 +0000 (-0400) Subject: block-sha1: more good unaligned memory access candidates X-Git-Tag: v1.6.5-rc0~30^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ee7dc310af660f423732369e955651ef2f05011d;p=git.git block-sha1: more good unaligned memory access candidates In addition to X86, PowerPC and S390 are capable of unaligned memory accesses. Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano --- diff --git a/block-sha1/sha1.c b/block-sha1/sha1.c index d3121f7a0..e5a100754 100644 --- a/block-sha1/sha1.c +++ b/block-sha1/sha1.c @@ -67,7 +67,10 @@ * and is faster on architectures with memory alignment issues. */ -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) || \ + defined(__ppc__) || defined(__ppc64__) || \ + defined(__powerpc__) || defined(__powerpc64__) || \ + defined(__s390__) || defined(__s390x__) #define get_be32(p) ntohl(*(unsigned int *)(p)) #define put_be32(p, v) do { *(unsigned int *)(p) = htonl(v); } while (0)