summaryrefslogtreecommitdiff
path: root/ppc_simd.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-19 15:23:29 -0500
committerJeffrey Walton <noloader@gmail.com>2018-11-19 15:23:29 -0500
commit531ab7e8c506925f3242b7590156d6223144733e (patch)
tree2ec89c1dfe235a1e6e0dd66e561770b980ca7286 /ppc_simd.h
parent87565dce753d986afca1b5c67b7baaa5c1f39cdc (diff)
downloadcryptopp-git-531ab7e8c506925f3242b7590156d6223144733e.tar.gz
Update comments
Diffstat (limited to 'ppc_simd.h')
-rw-r--r--ppc_simd.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ppc_simd.h b/ppc_simd.h
index c4f09097..bb22fa32 100644
--- a/ppc_simd.h
+++ b/ppc_simd.h
@@ -32,8 +32,9 @@
# undef bool
#endif
-// IBM XLC on AIX does not define __CRYPTO__ like it should. More LLVM goodness.
-#if defined(_AIX) && defined(__xlC__)
+// IBM XLC on AIX does not define __CRYPTO__ like it should with -qarch=pwr8.
+// Crypto is available in XLC 13.1 and above. More LLVM front-end goodness.
+#if defined(_AIX) && defined(_ARCH_PWR8) && (__xlC__ >= 0xd01)
# undef __CRYPTO__
# define __CRYPTO__ 1
#endif