summaryrefslogtreecommitdiffstats
path: root/secure/lib/libcrypto/opensslconf-powerpc.h
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-08-28 15:03:11 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-08-28 15:03:11 +0000
commit02bb2a078e660547225bc1483d9f7c6905f38360 (patch)
tree6f62d65d97c2f4f6ca7d2240978557bd1c5e084e /secure/lib/libcrypto/opensslconf-powerpc.h
parenta5c8d0424be1b289a1d47240266c6ad9ff009f58 (diff)
downloadFreeBSD-src-02bb2a078e660547225bc1483d9f7c6905f38360.zip
FreeBSD-src-02bb2a078e660547225bc1483d9f7c6905f38360.tar.gz
Repair some build breakage introduced in r211725 and garbage collect some
code made obsolete in the same commit.
Diffstat (limited to 'secure/lib/libcrypto/opensslconf-powerpc.h')
-rw-r--r--secure/lib/libcrypto/opensslconf-powerpc.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/secure/lib/libcrypto/opensslconf-powerpc.h b/secure/lib/libcrypto/opensslconf-powerpc.h
index d6debd7..70800fe 100644
--- a/secure/lib/libcrypto/opensslconf-powerpc.h
+++ b/secure/lib/libcrypto/opensslconf-powerpc.h
@@ -110,13 +110,17 @@
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
* %20 speed up (longs are 8 bytes, int's are 4). */
#ifndef DES_LONG
-#define DES_LONG unsigned long
+#define DES_LONG unsigned int
#endif
#endif
#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
#define CONFIG_HEADER_BN_H
+#ifdef __powerpc64__
+#undef BN_LLONG
+#else
#define BN_LLONG
+#endif
/* Should we define BN_DIV2W here? */
@@ -124,9 +128,14 @@
/* The prime number generation stuff may not work when
* EIGHT_BIT but I don't care since I've only used this mode
* for debuging the bignum libraries */
+#ifdef __powerpc64__
+#define SIXTY_FOUR_BIT_LONG
+#undef THIRTY_TWO_BIT
+#else
#undef SIXTY_FOUR_BIT_LONG
-#undef SIXTY_FOUR_BIT
#define THIRTY_TWO_BIT
+#endif
+#undef SIXTY_FOUR_BIT
#undef SIXTEEN_BIT
#undef EIGHT_BIT
#endif
OpenPOWER on IntegriCloud