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