Merge from vendor branch GCC:
[dragonfly.git] / secure / lib / libcrypto / opensslconf-i386.h
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 $ */
3 /* opensslconf.h */
4
5 /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
6
7 /* OpenSSL was configured with the following options: */
8 #ifdef OPENSSL_ALGORITHM_DEFINES
9    /* no ciphers excluded */
10 #endif
11 #ifdef OPENSSL_THREAD_DEFINES
12 # ifndef THREADS
13 #  define THREADS
14 # endif
15 #endif
16 #ifdef OPENSSL_OTHER_DEFINES
17 # ifndef NO_ASM
18 #  define NO_ASM
19 # endif
20 #endif
21
22 /* crypto/opensslconf.h.in */
23
24 /* Generate 80386 code? */
25 #undef I386_ONLY
26
27 #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
28 #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
29 #define OPENSSLDIR "/etc/ssl"
30 #endif
31 #endif
32
33 #define OPENSSL_UNISTD <unistd.h>
34
35 #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
36 #define IDEA_INT unsigned int
37 #endif
38
39 #if defined(HEADER_MD2_H) && !defined(MD2_INT)
40 #define MD2_INT unsigned int
41 #endif
42
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
46 #endif
47
48 #if defined(HEADER_RC4_H)
49 #if !defined(RC4_INT)
50 /* using int types make the structure larger but make the code faster
51  * on most boxes I have tested - up to %20 faster. */
52 /*
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;
56  */
57 #define RC4_INT unsigned int
58 #endif
59 #if !defined(RC4_CHUNK)
60 /*
61  * This enables code handling data aligned at natural CPU word
62  * boundary. See crypto/rc4/rc4_enc.c for further details.
63  */
64 #undef RC4_CHUNK
65 #endif
66 #endif
67
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). */
71 #ifndef DES_LONG
72 #define DES_LONG unsigned long
73 #endif
74 #endif
75
76 #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
77 #define CONFIG_HEADER_BN_H
78 #define BN_LLONG
79
80 /* Should we define BN_DIV2W here? */
81
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
87 #undef SIXTY_FOUR_BIT
88 #define THIRTY_TWO_BIT
89 #undef SIXTEEN_BIT
90 #undef EIGHT_BIT
91 #endif
92
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
96  * speedup on x86 */
97 #define RC4_INDEX
98 #endif
99
100 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
101 #define CONFIG_HEADER_BF_LOCL_H
102 #undef BF_PTR
103 #endif /* HEADER_BF_LOCL_H */
104
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 */
110 #ifndef DES_PTR
111 #define DES_PTR
112 #endif
113
114 /* This helps C compiler generate the correct code for multiple functional
115  * units.  It reduces register dependancies at the expense of 2 more
116  * registers */
117 #ifndef DES_RISC1
118 #define DES_RISC1
119 #endif
120
121 #ifndef DES_RISC2
122 #undef DES_RISC2
123 #endif
124
125 #if defined(DES_RISC1) && defined(DES_RISC2)
126 YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
127 #endif
128
129 /* Unroll the inner loop, this sometimes helps, sometimes hinders.
130  * Very mucy CPU dependant */
131 #ifndef DES_UNROLL
132 #define DES_UNROLL
133 #endif
134
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 */
144  
145 #if defined( sun )              /* Newer Sparc's */
146 #  define DES_PTR
147 #  define DES_RISC1
148 #  define DES_UNROLL
149 #elif defined( __ultrix )       /* Older MIPS */
150 #  define DES_PTR
151 #  define DES_RISC2
152 #  define DES_UNROLL
153 #elif defined( __osf1__ )       /* Alpha */
154 #  define DES_PTR
155 #  define DES_RISC2
156 #elif defined ( _AIX )          /* RS6000 */
157   /* Unknown */
158 #elif defined( __hpux )         /* HP-PA */
159   /* Unknown */
160 #elif defined( __aux )          /* 68K */
161   /* Unknown */
162 #elif defined( __dgux )         /* 88K (but P6 in latest boxes) */
163 #  define DES_UNROLL
164 #elif defined( __sgi )          /* Newer MIPS */
165 #  define DES_PTR
166 #  define DES_RISC2
167 #  define DES_UNROLL
168 #elif defined( i386 )           /* x86 boxes, should be gcc */
169 #  define DES_PTR
170 #  define DES_RISC1
171 #  define DES_UNROLL
172 #endif /* Systems-specific speed defines */
173 #endif
174
175 #endif /* DES_DEFAULT_OPTIONS */
176 #endif /* HEADER_DES_LOCL_H */
177 /* The Kerberos 5 support is MIT-specific. */
178 #define OPENSSL_NO_KRB5