Date: Wed, 4 Aug 2010 10:42:06 +0000 (UTC) From: "Jayachandran C." <jchandra@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210842 - head/secure/lib/libcrypto Message-ID: <201008041042.o74Ag626043180@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jchandra Date: Wed Aug 4 10:42:06 2010 New Revision: 210842 URL: http://svn.freebsd.org/changeset/base/210842 Log: 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. Modified: head/secure/lib/libcrypto/opensslconf-mips.h Modified: head/secure/lib/libcrypto/opensslconf-mips.h ============================================================================== --- head/secure/lib/libcrypto/opensslconf-mips.h Wed Aug 4 10:24:37 2010 (r210841) +++ head/secure/lib/libcrypto/opensslconf-mips.h Wed Aug 4 10:42:06 2010 (r210842) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008041042.o74Ag626043180>