summaryrefslogtreecommitdiffstats
path: root/secure
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2010-08-04 10:42:06 +0000
committerjchandra <jchandra@FreeBSD.org>2010-08-04 10:42:06 +0000
commitc9129e2aad2fa17af5e1d89ed5f6b02e863f3f34 (patch)
tree537d52b42ad32edae34885c56d0daec2afd18484 /secure
parent924ee386baafc526cc0e10d34e930088fd1d9ea0 (diff)
downloadFreeBSD-src-c9129e2aad2fa17af5e1d89ed5f6b02e863f3f34.zip
FreeBSD-src-c9129e2aad2fa17af5e1d89ed5f6b02e863f3f34.tar.gz
MIPS 64 bit support.
When compiled for MIPS n64 ABI - DES_LONG should be 'unsigned int' - BN_LLONG should be undefined - SIXTY_FOUR_BIT_LONG should be defined.
Diffstat (limited to 'secure')
-rw-r--r--secure/lib/libcrypto/opensslconf-mips.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/secure/lib/libcrypto/opensslconf-mips.h b/secure/lib/libcrypto/opensslconf-mips.h
index d6debd7..17fe0d9 100644
--- a/secure/lib/libcrypto/opensslconf-mips.h
+++ b/secure/lib/libcrypto/opensslconf-mips.h
@@ -110,23 +110,37 @@
/* 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
+#ifdef __mips_n64
+#define DES_LONG unsigned int
+#else
#define DES_LONG unsigned long
#endif
#endif
+#endif
#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
#define CONFIG_HEADER_BN_H
+#ifdef __mips_n64
+#undef BN_LLONG
+#else
#define BN_LLONG
+#endif
/* Should we define BN_DIV2W here? */
/* Only one for the following should be defined */
/* 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 __mips_n64
+#define SIXTY_FOUR_BIT_LONG
+#undef SIXTY_FOUR_BIT
+#undef THIRTY_TWO_BIT
+#else
#undef SIXTY_FOUR_BIT_LONG
#undef SIXTY_FOUR_BIT
#define THIRTY_TWO_BIT
+#endif
#undef SIXTEEN_BIT
#undef EIGHT_BIT
#endif
OpenPOWER on IntegriCloud