summaryrefslogtreecommitdiff
path: root/lib/freebl/gcm.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/freebl/gcm.h')
-rw-r--r--lib/freebl/gcm.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/lib/freebl/gcm.h b/lib/freebl/gcm.h
index 38b066580..21792e0b3 100644
--- a/lib/freebl/gcm.h
+++ b/lib/freebl/gcm.h
@@ -31,26 +31,8 @@
#include <arm_neon.h>
#endif
-#if defined(__powerpc64__) && !defined(NSS_DISABLE_ALTIVEC)
-#include "altivec-types.h"
-
-/* The ghash freebl test tries to use this in C++, and gcc defines conflict. */
-#ifdef __cplusplus
-#undef pixel
-#undef vector
-#undef bool
-#endif
-
-/*
- * PPC CRYPTO requires at least gcc 8 or clang. The LE check is purely
- * because it's only been tested on LE. If you're interested in BE,
- * please send a patch.
- */
-#if (defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 8)) && \
- defined(IS_LITTLE_ENDIAN)
-#define USE_PPC_CRYPTO
-#endif
-
+#if defined(__powerpc64__)
+#include "ppc-crypto.h"
#endif
SEC_BEGIN_PROTOS