opensslconf-amd64.h revision 55950
1278332Semaste/* $FreeBSD: head/secure/lib/libcrypto/opensslconf-amd64.h 55950 2000-01-14 05:49:29Z kris $ */
2278332Semaste
3278332Semaste/* crypto/opensslconf.h */
4278332Semaste/* WARNING: This file is autogenerated by Configure */
5278332Semaste
6278332Semaste/* Generate 80386 code? */
7278332Semaste#undef I386_ONLY
8278332Semaste
9278332Semaste#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
10327952Sdim#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
11278332Semaste#define OPENSSLDIR "/usr/local/ssl"
12278332Semaste#endif
13278332Semaste#endif
14278332Semaste
15278332Semaste#define OPENSSL_UNISTD <unistd.h>
16278332Semaste
17327952Sdim#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
18321369Sdim#define IDEA_INT unsigned int
19321369Sdim#endif
20321369Sdim
21327952Sdim#if defined(HEADER_MD2_H) && !defined(MD2_INT)
22278332Semaste#define MD2_INT unsigned int
23278332Semaste#endif
24278332Semaste
25278332Semaste#if defined(HEADER_RC2_H) && !defined(RC2_INT)
26278332Semaste/* I need to put in a mod for the alpha - eay */
27278332Semaste#define RC2_INT unsigned int
28278332Semaste#endif
29278332Semaste
30314564Sdim#if defined(HEADER_RC4_H) && !defined(RC4_INT)
31278332Semaste/* using int types make the structure larger but make the code faster
32314564Sdim * on most boxes I have tested - up to %20 faster. */
33314564Sdim#define RC4_INT unsigned int
34314564Sdim#endif
35314564Sdim
36278332Semaste#if defined(HEADER_DES_H) && !defined(DES_LONG)
37314564Sdim/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
38314564Sdim * %20 speed up (longs are 8 bytes, int's are 4). */
39314564Sdim#ifndef DES_LONG
40314564Sdim#define DES_LONG unsigned int
41314564Sdim#endif
42314564Sdim#endif
43278332Semaste
44314564Sdim#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
45314564Sdim#define CONFIG_HEADER_BN_H
46278332Semaste#undef BN_LLONG
47314564Sdim
48314564Sdim/* Should we define BN_DIV2W here? */
49314564Sdim
50314564Sdim/* Only one for the following should be defined */
51278332Semaste/* The prime number generation stuff may not work when
52314564Sdim * EIGHT_BIT but I don't care since I've only used this mode
53314564Sdim * for debuging the bignum libraries */
54278332Semaste#define SIXTY_FOUR_BIT_LONG
55314564Sdim#undef SIXTY_FOUR_BIT
56314564Sdim#undef THIRTY_TWO_BIT
57314564Sdim#undef SIXTEEN_BIT
58314564Sdim#undef EIGHT_BIT
59314564Sdim#endif
60314564Sdim
61314564Sdim#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
62314564Sdim#define CONFIG_HEADER_RC4_LOCL_H
63314564Sdim/* if this is defined data[i] is used instead of *data, this is a %20
64288943Sdim * speedup on x86 */
65314564Sdim#undef RC4_INDEX
66314564Sdim#endif
67314564Sdim
68314564Sdim#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
69314564Sdim#define CONFIG_HEADER_BF_LOCL_H
70314564Sdim#undef BF_PTR
71278332Semaste#endif /* HEADER_BF_LOCL_H */
72314564Sdim
73314564Sdim#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
74278332Semaste#define CONFIG_HEADER_DES_LOCL_H
75314564Sdim#ifndef DES_DEFAULT_OPTIONS
76314564Sdim/* the following is tweaked from a config script, that is why it is a
77314564Sdim * protected undef/define */
78314564Sdim#ifndef DES_PTR
79278332Semaste#define DES_PTR
80314564Sdim#endif
81314564Sdim
82278332Semaste/* This helps C compiler generate the correct code for multiple functional
83314564Sdim * units.  It reduces register dependancies at the expense of 2 more
84314564Sdim * registers */
85314564Sdim#ifndef DES_RISC1
86314564Sdim#undef DES_RISC1
87314564Sdim#endif
88314564Sdim
89314564Sdim#ifndef DES_RISC2
90314564Sdim#define DES_RISC2
91314564Sdim#endif
92309124Sdim
93314564Sdim#if defined(DES_RISC1) && defined(DES_RISC2)
94314564SdimYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
95314564Sdim#endif
96314564Sdim
97314564Sdim/* Unroll the inner loop, this sometimes helps, sometimes hinders.
98309124Sdim * Very mucy CPU dependant */
99314564Sdim#ifndef DES_UNROLL
100314564Sdim#undef DES_UNROLL
101314564Sdim#endif
102314564Sdim
103314564Sdim/* These default values were supplied by
104314564Sdim * Peter Gutman <pgut001@cs.auckland.ac.nz>
105314564Sdim * They are only used if nothing else has been defined */
106314564Sdim#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
107314564Sdim/* Special defines which change the way the code is built depending on the
108309124Sdim   CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
109314564Sdim   even newer MIPS CPU's, but at the moment one size fits all for
110314564Sdim   optimization options.  Older Sparc's work better with only UNROLL, but
111314564Sdim   there's no way to tell at compile time what it is you're running on */
112309124Sdim
113314564Sdim#if defined( sun )		/* Newer Sparc's */
114314564Sdim#  define DES_PTR
115314564Sdim#  define DES_RISC1
116314564Sdim#  define DES_UNROLL
117314564Sdim#elif defined( __ultrix )	/* Older MIPS */
118309124Sdim#  define DES_PTR
119314564Sdim#  define DES_RISC2
120309124Sdim#  define DES_UNROLL
121314564Sdim#elif defined( __osf1__ )	/* Alpha */
122314564Sdim#  define DES_PTR
123314564Sdim#  define DES_RISC2
124309124Sdim#elif defined ( _AIX )		/* RS6000 */
125314564Sdim  /* Unknown */
126314564Sdim#elif defined( __hpux )		/* HP-PA */
127314564Sdim  /* Unknown */
128314564Sdim#elif defined( __aux )		/* 68K */
129314564Sdim  /* Unknown */
130309124Sdim#elif defined( __dgux )		/* 88K (but P6 in latest boxes) */
131314564Sdim#  define DES_UNROLL
132309124Sdim#elif defined( __sgi )		/* Newer MIPS */
133314564Sdim#  define DES_PTR
134314564Sdim#  define DES_RISC2
135288943Sdim#  define DES_UNROLL
136278332Semaste#elif defined( i386 )		/* x86 boxes, should be gcc */
137278332Semaste#  define DES_PTR
138278332Semaste#  define DES_RISC1
139278332Semaste#  define DES_UNROLL
140278332Semaste#endif /* Systems-specific speed defines */
141278332Semaste#endif
142278332Semaste
143278332Semaste#endif /* DES_DEFAULT_OPTIONS */
144278332Semaste#endif /* HEADER_DES_LOCL_H */
145278332Semaste