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