2 * $FreeBSD: src/secure/lib/libcrypto/opensslconf-alpha.h,v 1.1.2.4 2003/02/14 22:38:14 nectar Exp $
3 * $DragonFly: src/secure/lib/libcrypto/opensslconf-amd64.h,v 1.1 2004/02/02 05:43:16 dillon Exp $
7 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
9 /* OpenSSL was configured with the following options: */
10 #ifdef OPENSSL_ALGORITHM_DEFINES
11 /* no ciphers excluded */
13 #ifdef OPENSSL_THREAD_DEFINES
18 #ifdef OPENSSL_OTHER_DEFINES
24 /* crypto/opensslconf.h.in */
26 /* Generate 80386 code? */
29 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
30 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
31 #define OPENSSLDIR "/etc/ssl"
35 #define OPENSSL_UNISTD <unistd.h>
37 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
38 #define IDEA_INT unsigned int
41 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
42 #define MD2_INT unsigned int
45 #if defined(HEADER_RC2_H) && !defined(RC2_INT)
46 /* I need to put in a mod for the alpha - eay */
47 #define RC2_INT unsigned int
50 #if defined(HEADER_RC4_H)
52 /* using int types make the structure larger but make the code faster
53 * on most boxes I have tested - up to %20 faster. */
55 * I don't know what does "most" mean, but declaring "int" is a must on:
56 * - Intel P6 because partial register stalls are very expensive;
57 * - elder Alpha because it lacks byte load/store instructions;
59 #define RC4_INT unsigned int
61 #if !defined(RC4_CHUNK)
63 * This enables code handling data aligned at natural CPU word
64 * boundary. See crypto/rc4/rc4_enc.c for further details.
70 #if (defined(HEADER_DES_H) || defined(HEADER_NEW_DES_H)) && !defined(DES_LONG)
71 /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
72 * %20 speed up (longs are 8 bytes, int's are 4). */
74 #define DES_LONG unsigned int
78 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
79 #define CONFIG_HEADER_BN_H
82 /* Should we define BN_DIV2W here? */
84 /* Only one for the following should be defined */
85 /* The prime number generation stuff may not work when
86 * EIGHT_BIT but I don't care since I've only used this mode
87 * for debuging the bignum libraries */
88 #define SIXTY_FOUR_BIT_LONG
95 #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
96 #define CONFIG_HEADER_RC4_LOCL_H
97 /* if this is defined data[i] is used instead of *data, this is a %20
102 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
103 #define CONFIG_HEADER_BF_LOCL_H
105 #endif /* HEADER_BF_LOCL_H */
107 #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
108 #define CONFIG_HEADER_DES_LOCL_H
109 #ifndef DES_DEFAULT_OPTIONS
110 /* the following is tweaked from a config script, that is why it is a
111 * protected undef/define */
116 /* This helps C compiler generate the correct code for multiple functional
117 * units. It reduces register dependancies at the expense of 2 more
127 #if defined(DES_RISC1) && defined(DES_RISC2)
128 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
131 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
132 * Very mucy CPU dependant */
137 /* These default values were supplied by
138 * Peter Gutman <pgut001@cs.auckland.ac.nz>
139 * They are only used if nothing else has been defined */
140 #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
141 /* Special defines which change the way the code is built depending on the
142 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
143 even newer MIPS CPU's, but at the moment one size fits all for
144 optimization options. Older Sparc's work better with only UNROLL, but
145 there's no way to tell at compile time what it is you're running on */
147 #if defined( sun ) /* Newer Sparc's */
151 #elif defined( __ultrix ) /* Older MIPS */
155 #elif defined( __osf1__ ) /* Alpha */
158 #elif defined ( _AIX ) /* RS6000 */
160 #elif defined( __hpux ) /* HP-PA */
162 #elif defined( __aux ) /* 68K */
164 #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
166 #elif defined( __sgi ) /* Newer MIPS */
170 #elif defined( i386 ) /* x86 boxes, should be gcc */
174 #endif /* Systems-specific speed defines */
177 #endif /* DES_DEFAULT_OPTIONS */
178 #endif /* HEADER_DES_LOCL_H */
179 /* The Kerberos 5 support is MIT-specific. */
180 #define OPENSSL_NO_KRB5