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