blob: 2c6ddaed31f6ba9c73da9392f16002d5b53bcfbc [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001/* opensslconf.h */
2/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
3
4/* OpenSSL was configured with the following options: */
5#ifdef OPENSSL_ALGORITHM_DEFINES
6 /* no ciphers excluded */
7#endif
8#ifdef OPENSSL_THREAD_DEFINES
9#endif
10#ifdef OPENSSL_OTHER_DEFINES
11#endif
12
13/* crypto/opensslconf.h.in */
14
15/* Generate 80386 code? */
16#undef I386_ONLY
17
18#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
19#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
20#define OPENSSLDIR "/usr/local/ssl"
21#endif
22#endif
23
24#define OPENSSL_UNISTD <unistd.h>
25
26#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
27#define IDEA_INT unsigned int
28#endif
29
30#if defined(HEADER_MD2_H) && !defined(MD2_INT)
31#define MD2_INT unsigned int
32#endif
33
34#if defined(HEADER_RC2_H) && !defined(RC2_INT)
35/* I need to put in a mod for the alpha - eay */
36#define RC2_INT unsigned int
37#endif
38
39#if defined(HEADER_RC4_H)
40#if !defined(RC4_INT)
41/* using int types make the structure larger but make the code faster
42 * on most boxes I have tested - up to %20 faster. */
43/*
44 * I don't know what does "most" mean, but declaring "int" is a must on:
45 * - Intel P6 because partial register stalls are very expensive;
46 * - elder Alpha because it lacks byte load/store instructions;
47 */
48#define RC4_INT unsigned int
49#endif
50#if !defined(RC4_CHUNK)
51/*
52 * This enables code handling data aligned at natural CPU word
53 * boundary. See crypto/rc4/rc4_enc.c for further details.
54 */
55#undef RC4_CHUNK
56#endif
57#endif
58
59#if defined(HEADER_DES_H) && !defined(DES_LONG)
60/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
61 * %20 speed up (longs are 8 bytes, int's are 4). */
62#ifndef DES_LONG
63#define DES_LONG unsigned long
64#endif
65#endif
66
67#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
68#define CONFIG_HEADER_BN_H
69#undef BN_LLONG
70
71/* Should we define BN_DIV2W here? */
72
73/* Only one for the following should be defined */
74/* The prime number generation stuff may not work when
75 * EIGHT_BIT but I don't care since I've only used this mode
76 * for debuging the bignum libraries */
77#undef SIXTY_FOUR_BIT_LONG
78#undef SIXTY_FOUR_BIT
79#define THIRTY_TWO_BIT
80#undef SIXTEEN_BIT
81#undef EIGHT_BIT
82#endif
83
84#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
85#define CONFIG_HEADER_RC4_LOCL_H
86/* if this is defined data[i] is used instead of *data, this is a %20
87 * speedup on x86 */
88#undef RC4_INDEX
89#endif
90
91#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
92#define CONFIG_HEADER_BF_LOCL_H
93#undef BF_PTR
94#endif /* HEADER_BF_LOCL_H */
95
96#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
97#define CONFIG_HEADER_DES_LOCL_H
98#ifndef DES_DEFAULT_OPTIONS
99/* the following is tweaked from a config script, that is why it is a
100 * protected undef/define */
101#ifndef DES_PTR
102#undef DES_PTR
103#endif
104
105/* This helps C compiler generate the correct code for multiple functional
106 * units. It reduces register dependancies at the expense of 2 more
107 * registers */
108#ifndef DES_RISC1
109#undef DES_RISC1
110#endif
111
112#ifndef DES_RISC2
113#undef DES_RISC2
114#endif
115
116#if defined(DES_RISC1) && defined(DES_RISC2)
117YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
118#endif
119
120/* Unroll the inner loop, this sometimes helps, sometimes hinders.
121 * Very mucy CPU dependant */
122#ifndef DES_UNROLL
123#undef DES_UNROLL
124#endif
125
126/* These default values were supplied by
127 * Peter Gutman <pgut001@cs.auckland.ac.nz>
128 * They are only used if nothing else has been defined */
129#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
130/* Special defines which change the way the code is built depending on the
131 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
132 even newer MIPS CPU's, but at the moment one size fits all for
133 optimization options. Older Sparc's work better with only UNROLL, but
134 there's no way to tell at compile time what it is you're running on */
135
136#if defined( sun ) /* Newer Sparc's */
137# define DES_PTR
138# define DES_RISC1
139# define DES_UNROLL
140#elif defined( __ultrix ) /* Older MIPS */
141# define DES_PTR
142# define DES_RISC2
143# define DES_UNROLL
144#elif defined( __osf1__ ) /* Alpha */
145# define DES_PTR
146# define DES_RISC2
147#elif defined ( _AIX ) /* RS6000 */
148 /* Unknown */
149#elif defined( __hpux ) /* HP-PA */
150 /* Unknown */
151#elif defined( __aux ) /* 68K */
152 /* Unknown */
153#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
154# define DES_UNROLL
155#elif defined( __sgi ) /* Newer MIPS */
156# define DES_PTR
157# define DES_RISC2
158# define DES_UNROLL
159#elif defined( i386 ) /* x86 boxes, should be gcc */
160# define DES_PTR
161# define DES_RISC1
162# define DES_UNROLL
163#endif /* Systems-specific speed defines */
164#endif
165
166#endif /* DES_DEFAULT_OPTIONS */
167#endif /* HEADER_DES_LOCL_H */