opensslconf-amd64.h revision 63249
1/* $FreeBSD: head/secure/lib/libcrypto/opensslconf-amd64.h 55950 2000-01-14 05:49:29Z kris $ */ 2 3/* crypto/opensslconf.h */ 4/* WARNING: This file is autogenerated by Configure */ 5 6/* Generate 80386 code? */ 7#undef I386_ONLY 8 9#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 10#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 11#define OPENSSLDIR "/usr/local/ssl" 12#endif 13#endif 14 15#define OPENSSL_UNISTD <unistd.h> 16 17#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 18#define IDEA_INT unsigned int 19#endif 20 21#if defined(HEADER_MD2_H) && !defined(MD2_INT) 22#define MD2_INT unsigned int 23#endif 24 25#if defined(HEADER_RC2_H) && !defined(RC2_INT) 26/* I need to put in a mod for the alpha - eay */ 27#define RC2_INT unsigned int 28#endif 29 30#if defined(HEADER_RC4_H) && !defined(RC4_INT) 31/* using int types make the structure larger but make the code faster 32 * on most boxes I have tested - up to %20 faster. */ 33#define RC4_INT unsigned int 34#endif 35 36#if defined(HEADER_DES_H) && !defined(DES_LONG) 37/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 38 * %20 speed up (longs are 8 bytes, int's are 4). */ 39#ifndef DES_LONG 40#define DES_LONG unsigned int 41#endif 42#endif 43 44#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 45#define CONFIG_HEADER_BN_H 46#undef BN_LLONG 47 48/* Should we define BN_DIV2W here? */ 49 50/* Only one for the following should be defined */ 51/* The prime number generation stuff may not work when 52 * EIGHT_BIT but I don't care since I've only used this mode 53 * for debuging the bignum libraries */ 54#define SIXTY_FOUR_BIT_LONG 55#undef SIXTY_FOUR_BIT 56#undef THIRTY_TWO_BIT 57#undef SIXTEEN_BIT 58#undef EIGHT_BIT 59#endif 60 61#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 62#define CONFIG_HEADER_RC4_LOCL_H 63/* if this is defined data[i] is used instead of *data, this is a %20 64 * speedup on x86 */ 65#undef RC4_INDEX 66#endif 67 68#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 69#define CONFIG_HEADER_BF_LOCL_H 70#undef BF_PTR 71#endif /* HEADER_BF_LOCL_H */ 72 73#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 74#define CONFIG_HEADER_DES_LOCL_H 75#ifndef DES_DEFAULT_OPTIONS 76/* the following is tweaked from a config script, that is why it is a 77 * protected undef/define */ 78#ifndef DES_PTR 79#define DES_PTR 80#endif 81 82/* This helps C compiler generate the correct code for multiple functional 83 * units. It reduces register dependancies at the expense of 2 more 84 * registers */ 85#ifndef DES_RISC1 86#undef DES_RISC1 87#endif 88 89#ifndef DES_RISC2 90#define DES_RISC2 91#endif 92 93#if defined(DES_RISC1) && defined(DES_RISC2) 94YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 95#endif 96 97/* Unroll the inner loop, this sometimes helps, sometimes hinders. 98 * Very mucy CPU dependant */ 99#ifndef DES_UNROLL 100#undef DES_UNROLL 101#endif 102 103/* These default values were supplied by 104 * Peter Gutman <pgut001@cs.auckland.ac.nz> 105 * They are only used if nothing else has been defined */ 106#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 107/* Special defines which change the way the code is built depending on the 108 CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 109 even newer MIPS CPU's, but at the moment one size fits all for 110 optimization options. Older Sparc's work better with only UNROLL, but 111 there's no way to tell at compile time what it is you're running on */ 112 113#if defined( sun ) /* Newer Sparc's */ 114# define DES_PTR 115# define DES_RISC1 116# define DES_UNROLL 117#elif defined( __ultrix ) /* Older MIPS */ 118# define DES_PTR 119# define DES_RISC2 120# define DES_UNROLL 121#elif defined( __osf1__ ) /* Alpha */ 122# define DES_PTR 123# define DES_RISC2 124#elif defined ( _AIX ) /* RS6000 */ 125 /* Unknown */ 126#elif defined( __hpux ) /* HP-PA */ 127 /* Unknown */ 128#elif defined( __aux ) /* 68K */ 129 /* Unknown */ 130#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 131# define DES_UNROLL 132#elif defined( __sgi ) /* Newer MIPS */ 133# define DES_PTR 134# define DES_RISC2 135# define DES_UNROLL 136#elif defined( i386 ) /* x86 boxes, should be gcc */ 137# define DES_PTR 138# define DES_RISC1 139# define DES_UNROLL 140#endif /* Systems-specific speed defines */ 141#endif 142 143#endif /* DES_DEFAULT_OPTIONS */ 144#endif /* HEADER_DES_LOCL_H */ 145