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