1180767Simp/* $FreeBSD: stable/10/secure/lib/libcrypto/opensslconf-mips.h.in 312851 2017-01-26 23:29:30Z jkim $ */ 2180767Simp/* opensslconf.h */ 3180767Simp/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 4180767Simp 5280304Sjkim#ifdef __cplusplus 6280304Sjkimextern "C" { 7280304Sjkim#endif 8180767Simp/* OpenSSL was configured with the following options: */ 9180767Simp#ifndef OPENSSL_DOING_MAKEDEPEND 10180767Simp 11238405Sjkim 12238405Sjkim#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 13238405Sjkim# define OPENSSL_NO_EC_NISTP_64_GCC_128 14180767Simp#endif 15238405Sjkim#ifndef OPENSSL_NO_GMP 16238405Sjkim# define OPENSSL_NO_GMP 17194207Ssimon#endif 18194207Ssimon#ifndef OPENSSL_NO_JPAKE 19194207Ssimon# define OPENSSL_NO_JPAKE 20194207Ssimon#endif 21180767Simp#ifndef OPENSSL_NO_KRB5 22180767Simp# define OPENSSL_NO_KRB5 23180767Simp#endif 24238405Sjkim#ifndef OPENSSL_NO_MD2 25238405Sjkim# define OPENSSL_NO_MD2 26238405Sjkim#endif 27238405Sjkim#ifndef OPENSSL_NO_SCTP 28238405Sjkim# define OPENSSL_NO_SCTP 29238405Sjkim#endif 30238405Sjkim#ifndef OPENSSL_NO_STORE 31238405Sjkim# define OPENSSL_NO_STORE 32238405Sjkim#endif 33280304Sjkim#ifndef OPENSSL_NO_UNIT_TEST 34280304Sjkim# define OPENSSL_NO_UNIT_TEST 35280304Sjkim#endif 36296317Sdelphij#ifndef OPENSSL_NO_WEAK_SSL_CIPHERS 37296317Sdelphij# define OPENSSL_NO_WEAK_SSL_CIPHERS 38296317Sdelphij#endif 39180767Simp 40180767Simp#endif /* OPENSSL_DOING_MAKEDEPEND */ 41238405Sjkim 42180767Simp#ifndef OPENSSL_THREADS 43180767Simp# define OPENSSL_THREADS 44180767Simp#endif 45312851Sjkim%%NO_ASM%%#ifndef OPENSSL_NO_ASM 46312851Sjkim%%NO_ASM%%# define OPENSSL_NO_ASM 47312851Sjkim%%NO_ASM%%#endif 48180767Simp#ifndef OPENSSL_NO_STATIC_ENGINE 49180767Simp# define OPENSSL_NO_STATIC_ENGINE 50180767Simp#endif 51180767Simp 52180767Simp/* The OPENSSL_NO_* macros are also defined as NO_* if the application 53180767Simp asks for it. This is a transient feature that is provided for those 54180767Simp who haven't had the time to do the appropriate changes in their 55180767Simp applications. */ 56180767Simp#ifdef OPENSSL_ALGORITHM_DEFINES 57238405Sjkim# if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128) 58238405Sjkim# define NO_EC_NISTP_64_GCC_128 59238405Sjkim# endif 60180767Simp# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) 61180767Simp# define NO_GMP 62180767Simp# endif 63238405Sjkim# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE) 64238405Sjkim# define NO_JPAKE 65238405Sjkim# endif 66180767Simp# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) 67180767Simp# define NO_KRB5 68180767Simp# endif 69238405Sjkim# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2) 70238405Sjkim# define NO_MD2 71180767Simp# endif 72238405Sjkim# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP) 73238405Sjkim# define NO_SCTP 74180767Simp# endif 75238405Sjkim# if defined(OPENSSL_NO_STORE) && !defined(NO_STORE) 76238405Sjkim# define NO_STORE 77238405Sjkim# endif 78280304Sjkim# if defined(OPENSSL_NO_UNIT_TEST) && !defined(NO_UNIT_TEST) 79280304Sjkim# define NO_UNIT_TEST 80280304Sjkim# endif 81296317Sdelphij# if defined(OPENSSL_NO_WEAK_SSL_CIPHERS) && !defined(NO_WEAK_SSL_CIPHERS) 82296317Sdelphij# define NO_WEAK_SSL_CIPHERS 83296317Sdelphij# endif 84180767Simp#endif 85180767Simp 86180767Simp/* crypto/opensslconf.h.in */ 87180767Simp 88180767Simp/* Generate 80386 code? */ 89180767Simp#undef I386_ONLY 90180767Simp 91180767Simp#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 92180767Simp#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 93180767Simp#define ENGINESDIR "/usr/lib/engines" 94180767Simp#define OPENSSLDIR "/etc/ssl" 95180767Simp#endif 96180767Simp#endif 97180767Simp 98180767Simp#undef OPENSSL_UNISTD 99180767Simp#define OPENSSL_UNISTD <unistd.h> 100180767Simp 101180767Simp#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 102180767Simp 103180767Simp#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 104180767Simp#define IDEA_INT unsigned int 105180767Simp#endif 106180767Simp 107180767Simp#if defined(HEADER_MD2_H) && !defined(MD2_INT) 108180767Simp#define MD2_INT unsigned int 109180767Simp#endif 110180767Simp 111180767Simp#if defined(HEADER_RC2_H) && !defined(RC2_INT) 112180767Simp/* I need to put in a mod for the alpha - eay */ 113180767Simp#define RC2_INT unsigned int 114180767Simp#endif 115180767Simp 116180767Simp#if defined(HEADER_RC4_H) 117180767Simp#if !defined(RC4_INT) 118180767Simp/* using int types make the structure larger but make the code faster 119180767Simp * on most boxes I have tested - up to %20 faster. */ 120180767Simp/* 121180767Simp * I don't know what does "most" mean, but declaring "int" is a must on: 122180767Simp * - Intel P6 because partial register stalls are very expensive; 123180767Simp * - elder Alpha because it lacks byte load/store instructions; 124180767Simp */ 125180767Simp#define RC4_INT unsigned int 126180767Simp#endif 127180767Simp#if !defined(RC4_CHUNK) 128180767Simp/* 129180767Simp * This enables code handling data aligned at natural CPU word 130180767Simp * boundary. See crypto/rc4/rc4_enc.c for further details. 131180767Simp */ 132180767Simp#undef RC4_CHUNK 133180767Simp#endif 134180767Simp#endif 135180767Simp 136180767Simp#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) 137180767Simp/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 138180767Simp * %20 speed up (longs are 8 bytes, int's are 4). */ 139180767Simp#ifndef DES_LONG 140210842Sjchandra#ifdef __mips_n64 141210842Sjchandra#define DES_LONG unsigned int 142210842Sjchandra#else 143180767Simp#define DES_LONG unsigned long 144180767Simp#endif 145180767Simp#endif 146210842Sjchandra#endif 147180767Simp 148180767Simp#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 149180767Simp#define CONFIG_HEADER_BN_H 150210842Sjchandra#ifdef __mips_n64 151210842Sjchandra#undef BN_LLONG 152210842Sjchandra#else 153180767Simp#define BN_LLONG 154210843Sjchandra#endif 155180767Simp 156180767Simp/* Should we define BN_DIV2W here? */ 157180767Simp 158180767Simp/* Only one for the following should be defined */ 159210842Sjchandra#ifdef __mips_n64 160210842Sjchandra#define SIXTY_FOUR_BIT_LONG 161210842Sjchandra#undef SIXTY_FOUR_BIT 162210842Sjchandra#undef THIRTY_TWO_BIT 163210842Sjchandra#else 164180767Simp#undef SIXTY_FOUR_BIT_LONG 165180767Simp#undef SIXTY_FOUR_BIT 166180767Simp#define THIRTY_TWO_BIT 167210842Sjchandra#endif 168180767Simp#endif 169180767Simp 170180767Simp#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 171180767Simp#define CONFIG_HEADER_RC4_LOCL_H 172180767Simp/* if this is defined data[i] is used instead of *data, this is a %20 173180767Simp * speedup on x86 */ 174180767Simp#define RC4_INDEX 175180767Simp#endif 176180767Simp 177180767Simp#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 178180767Simp#define CONFIG_HEADER_BF_LOCL_H 179180767Simp#undef BF_PTR 180180767Simp#endif /* HEADER_BF_LOCL_H */ 181180767Simp 182180767Simp#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 183180767Simp#define CONFIG_HEADER_DES_LOCL_H 184180767Simp#ifndef DES_DEFAULT_OPTIONS 185180767Simp/* the following is tweaked from a config script, that is why it is a 186180767Simp * protected undef/define */ 187180767Simp#ifndef DES_PTR 188180767Simp#define DES_PTR 189180767Simp#endif 190180767Simp 191180767Simp/* This helps C compiler generate the correct code for multiple functional 192180767Simp * units. It reduces register dependancies at the expense of 2 more 193180767Simp * registers */ 194180767Simp#ifndef DES_RISC1 195180767Simp#define DES_RISC1 196180767Simp#endif 197180767Simp 198180767Simp#ifndef DES_RISC2 199180767Simp#undef DES_RISC2 200180767Simp#endif 201180767Simp 202180767Simp#if defined(DES_RISC1) && defined(DES_RISC2) 203180767SimpYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 204180767Simp#endif 205180767Simp 206180767Simp/* Unroll the inner loop, this sometimes helps, sometimes hinders. 207180767Simp * Very mucy CPU dependant */ 208180767Simp#ifndef DES_UNROLL 209180767Simp#define DES_UNROLL 210180767Simp#endif 211180767Simp 212180767Simp/* These default values were supplied by 213180767Simp * Peter Gutman <pgut001@cs.auckland.ac.nz> 214180767Simp * They are only used if nothing else has been defined */ 215180767Simp#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 216180767Simp/* Special defines which change the way the code is built depending on the 217180767Simp CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 218180767Simp even newer MIPS CPU's, but at the moment one size fits all for 219180767Simp optimization options. Older Sparc's work better with only UNROLL, but 220180767Simp there's no way to tell at compile time what it is you're running on */ 221180767Simp 222180767Simp#if defined( sun ) /* Newer Sparc's */ 223180767Simp# define DES_PTR 224180767Simp# define DES_RISC1 225180767Simp# define DES_UNROLL 226180767Simp#elif defined( __ultrix ) /* Older MIPS */ 227180767Simp# define DES_PTR 228180767Simp# define DES_RISC2 229180767Simp# define DES_UNROLL 230180767Simp#elif defined( __osf1__ ) /* Alpha */ 231180767Simp# define DES_PTR 232180767Simp# define DES_RISC2 233180767Simp#elif defined ( _AIX ) /* RS6000 */ 234180767Simp /* Unknown */ 235180767Simp#elif defined( __hpux ) /* HP-PA */ 236180767Simp /* Unknown */ 237180767Simp#elif defined( __aux ) /* 68K */ 238180767Simp /* Unknown */ 239180767Simp#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 240180767Simp# define DES_UNROLL 241180767Simp#elif defined( __sgi ) /* Newer MIPS */ 242180767Simp# define DES_PTR 243180767Simp# define DES_RISC2 244180767Simp# define DES_UNROLL 245238405Sjkim#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ 246180767Simp# define DES_PTR 247180767Simp# define DES_RISC1 248180767Simp# define DES_UNROLL 249180767Simp#endif /* Systems-specific speed defines */ 250180767Simp#endif 251180767Simp 252180767Simp#endif /* DES_DEFAULT_OPTIONS */ 253180767Simp#endif /* HEADER_DES_LOCL_H */ 254280304Sjkim#ifdef __cplusplus 255280304Sjkim} 256280304Sjkim#endif 257