[PATCH] bufhelp: enable fast unaligned memory accesses on powerpc

Jussi Kivilinna jussi.kivilinna at iki.fi
Thu Sep 19 14:08:09 CEST 2013


* cipher/bufhelp.h [__ppc__] (BUFHELP_FAST_UNALIGNED_ACCESS): Enable
macro.
[__ppc64__] (BUFHELP_FAST_UNALIGNED_ACCESS): Enable macro.
--

PowerPC can handle unaligned memory accesses fast, so enable fast
buffer handling in bufhelp.h.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/bufhelp.h |    1 +
 1 file changed, 1 insertion(+)

diff --git a/cipher/bufhelp.h b/cipher/bufhelp.h
index c637dac..e7beffb 100644
--- a/cipher/bufhelp.h
+++ b/cipher/bufhelp.h
@@ -34,6 +34,7 @@
 
 
 #if defined(__i386__) || defined(__x86_64__) || \
+    defined(__ppc__) || defined(__ppc64__) || \
     (defined(__arm__) && defined(__ARM_FEATURE_UNALIGNED))
 /* These architectures are able of unaligned memory accesses and can
    handle those fast.




More information about the Gcrypt-devel mailing list