diff options
author | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-08-16 19:44:55 +0300 |
---|---|---|
committer | Jussi Kivilinna <jussi.kivilinna@iki.fi> | 2013-08-19 09:54:25 +0300 |
commit | 796dda37b957b20dba391343937c6325a8c8b288 (patch) | |
tree | 67fbf6a9498b3e1a10fae755adda63bb23baa883 /cipher/bufhelp.h | |
parent | 79895b9459b9bf8c60cb7abf09d5bf16ed0cf6e3 (diff) | |
download | libgcrypt-796dda37b957b20dba391343937c6325a8c8b288.tar.gz |
cipher: bufhelp: allow unaligned memory accesses on ARM
* cipher/bufhelp.h [__arm__ && __ARM_FEATURE_UNALIGNED]: Enable
BUFHELP_FAST_UNALIGNED_ACCESS.
--
Newer ARM systems support unaligned memory accesses and on gcc-4.7 and onwards
this is identified by __ARM_FEATURE_UNALIGNED macro.
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'cipher/bufhelp.h')
-rw-r--r-- | cipher/bufhelp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cipher/bufhelp.h b/cipher/bufhelp.h index 1c173e27..d829cf19 100644 --- a/cipher/bufhelp.h +++ b/cipher/bufhelp.h @@ -29,7 +29,8 @@ #endif -#if defined(__i386__) || defined(__x86_64__) +#if defined(__i386__) || defined(__x86_64__) || \ + (defined(__arm__) && defined(__ARM_FEATURE_UNALIGNED)) /* These architectures are able of unaligned memory accesses and can handle those fast. */ |