opensslconf-powerpc.h revision 96643
1/* $FreeBSD: head/secure/lib/libcrypto/opensslconf-powerpc.h 96643 2002-05-15 09:17:27Z obrien $ */ 2/* opensslconf.h */ 3 4/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 5 6/* OpenSSL was configured with the following options: */ 7#ifdef OPENSSL_ALGORITHM_DEFINES 8 /* no ciphers excluded */ 9#endif 10#ifdef OPENSSL_THREAD_DEFINES 11# ifndef THREADS 12# define THREADS 13# endif 14#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) 28#define OPENSSLDIR "/etc/ssl" 29#endif 30#endif 31 32#define OPENSSL_UNISTD <unistd.h> 33 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 67#if 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 */ 176