From 6b3691be00f1a492c354088d709f5a2327a30349 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 7 Aug 2013 16:49:45 -0700 Subject: [PATCH] More CPUs supporting unaligned access --- .../crypto_onetimeauth/poly1305/donna/portable-jane.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h b/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h index 3f480005..8546cb7f 100644 --- a/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h +++ b/src/libsodium/crypto_onetimeauth/poly1305/donna/portable-jane.h @@ -281,7 +281,11 @@ /* unknown endian! */ #endif -#if defined(CPU_X86) || defined(CPU_X86_64) +#if defined(__s390__) || defined(__zarch__) || defined(__SYSC_ZARCH__) +# define CPU_Z390 +#endif + +#if defined(CPU_X86) || defined(CPU_X86_64) || defined(CPU_PPC) || defined(CPU_Z390) # undef CPU_ALIGNED_ACCESS_REQUIRED #else # define CPU_ALIGNED_ACCESS_REQUIRED