186559Sjake/* $FreeBSD: stable/10/secure/lib/libcrypto/opensslconf-sparc64.h.in 312851 2017-01-26 23:29:30Z jkim $ */ 286559Sjake/* opensslconf.h */ 386559Sjake/* WARNING: Generated automatically from opensslconf.h.in by Configure. */ 486559Sjake 5280304Sjkim#ifdef __cplusplus 6280304Sjkimextern "C" { 7280304Sjkim#endif 886559Sjake/* OpenSSL was configured with the following options: */ 9160819Ssimon#ifndef OPENSSL_DOING_MAKEDEPEND 10160819Ssimon 11238405Sjkim 12238405Sjkim#ifndef OPENSSL_NO_EC_NISTP_64_GCC_128 13238405Sjkim# define OPENSSL_NO_EC_NISTP_64_GCC_128 14162915Ssimon#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 21160819Ssimon#ifndef OPENSSL_NO_KRB5 22160819Ssimon# define OPENSSL_NO_KRB5 23160819Ssimon#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 39160819Ssimon 40160819Ssimon#endif /* OPENSSL_DOING_MAKEDEPEND */ 41238405Sjkim 42160819Ssimon#ifndef OPENSSL_THREADS 43160819Ssimon# define OPENSSL_THREADS 44160819Ssimon#endif 45312851Sjkim%%NO_ASM%%#ifndef OPENSSL_NO_ASM 46312851Sjkim%%NO_ASM%%# define OPENSSL_NO_ASM 47312851Sjkim%%NO_ASM%%#endif 48160819Ssimon#ifndef OPENSSL_NO_STATIC_ENGINE 49160819Ssimon# define OPENSSL_NO_STATIC_ENGINE 50160819Ssimon#endif 51160819Ssimon 52160819Ssimon/* The OPENSSL_NO_* macros are also defined as NO_* if the application 53160819Ssimon asks for it. This is a transient feature that is provided for those 54160819Ssimon who haven't had the time to do the appropriate changes in their 55160819Ssimon applications. */ 5686559Sjake#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 60160819Ssimon# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP) 61160819Ssimon# define NO_GMP 6286559Sjake# endif 63238405Sjkim# if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE) 64238405Sjkim# define NO_JPAKE 65238405Sjkim# endif 66160819Ssimon# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5) 67160819Ssimon# define NO_KRB5 68160819Ssimon# endif 69238405Sjkim# if defined(OPENSSL_NO_MD2) && !defined(NO_MD2) 70238405Sjkim# define NO_MD2 71160819Ssimon# endif 72238405Sjkim# if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP) 73238405Sjkim# define NO_SCTP 7486559Sjake# 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 8486559Sjake#endif 8586559Sjake 86312851Sjkim%%ASM%%#define OPENSSL_CPUID_OBJ 87312851Sjkim%%ASM%% 8886559Sjake/* crypto/opensslconf.h.in */ 8986559Sjake 9086559Sjake/* Generate 80386 code? */ 9186559Sjake#undef I386_ONLY 9286559Sjake 9386559Sjake#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */ 9486559Sjake#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR) 95160819Ssimon#define ENGINESDIR "/usr/lib/engines" 9686559Sjake#define OPENSSLDIR "/etc/ssl" 9786559Sjake#endif 9886559Sjake#endif 9986559Sjake 100160819Ssimon#undef OPENSSL_UNISTD 10186559Sjake#define OPENSSL_UNISTD <unistd.h> 10286559Sjake 103160819Ssimon#undef OPENSSL_EXPORT_VAR_AS_FUNCTION 104160819Ssimon 10586559Sjake#if defined(HEADER_IDEA_H) && !defined(IDEA_INT) 10686559Sjake#define IDEA_INT unsigned int 10786559Sjake#endif 10886559Sjake 10986559Sjake#if defined(HEADER_MD2_H) && !defined(MD2_INT) 11086559Sjake#define MD2_INT unsigned int 11186559Sjake#endif 11286559Sjake 11386559Sjake#if defined(HEADER_RC2_H) && !defined(RC2_INT) 11486559Sjake/* I need to put in a mod for the alpha - eay */ 11586559Sjake#define RC2_INT unsigned int 11686559Sjake#endif 11786559Sjake 11886559Sjake#if defined(HEADER_RC4_H) 11986559Sjake#if !defined(RC4_INT) 12086559Sjake/* using int types make the structure larger but make the code faster 12186559Sjake * on most boxes I have tested - up to %20 faster. */ 12286559Sjake/* 12386559Sjake * I don't know what does "most" mean, but declaring "int" is a must on: 12486559Sjake * - Intel P6 because partial register stalls are very expensive; 12586559Sjake * - elder Alpha because it lacks byte load/store instructions; 12686559Sjake */ 12786559Sjake#define RC4_INT unsigned int 12886559Sjake#endif 12986559Sjake#if !defined(RC4_CHUNK) 13086559Sjake/* 13186559Sjake * This enables code handling data aligned at natural CPU word 13286559Sjake * boundary. See crypto/rc4/rc4_enc.c for further details. 13386559Sjake */ 13486559Sjake#undef RC4_CHUNK 13586559Sjake#endif 13686559Sjake#endif 13786559Sjake 138160819Ssimon#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG) 13986559Sjake/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a 14086559Sjake * %20 speed up (longs are 8 bytes, int's are 4). */ 14186559Sjake#ifndef DES_LONG 14286559Sjake#define DES_LONG unsigned int 14386559Sjake#endif 14486559Sjake#endif 14586559Sjake 14686559Sjake#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H) 14786559Sjake#define CONFIG_HEADER_BN_H 14886559Sjake#undef BN_LLONG 14986559Sjake 15086559Sjake/* Should we define BN_DIV2W here? */ 15186559Sjake 15286559Sjake/* Only one for the following should be defined */ 15386559Sjake#define SIXTY_FOUR_BIT_LONG 15486559Sjake#undef SIXTY_FOUR_BIT 15586559Sjake#undef THIRTY_TWO_BIT 15686559Sjake#endif 15786559Sjake 15886559Sjake#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) 15986559Sjake#define CONFIG_HEADER_RC4_LOCL_H 16086559Sjake/* if this is defined data[i] is used instead of *data, this is a %20 16186559Sjake * speedup on x86 */ 16286559Sjake#undef RC4_INDEX 16386559Sjake#endif 16486559Sjake 16586559Sjake#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) 16686559Sjake#define CONFIG_HEADER_BF_LOCL_H 16786559Sjake#undef BF_PTR 16886559Sjake#endif /* HEADER_BF_LOCL_H */ 16986559Sjake 17086559Sjake#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H) 17186559Sjake#define CONFIG_HEADER_DES_LOCL_H 17286559Sjake#ifndef DES_DEFAULT_OPTIONS 17386559Sjake/* the following is tweaked from a config script, that is why it is a 17486559Sjake * protected undef/define */ 17586559Sjake#ifndef DES_PTR 17686559Sjake#define DES_PTR 17786559Sjake#endif 17886559Sjake 17986559Sjake/* This helps C compiler generate the correct code for multiple functional 18086559Sjake * units. It reduces register dependancies at the expense of 2 more 18186559Sjake * registers */ 18286559Sjake#ifndef DES_RISC1 18386559Sjake#undef DES_RISC1 18486559Sjake#endif 18586559Sjake 18686559Sjake#ifndef DES_RISC2 18786559Sjake#define DES_RISC2 18886559Sjake#endif 18986559Sjake 19086559Sjake#if defined(DES_RISC1) && defined(DES_RISC2) 19186559SjakeYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! 19286559Sjake#endif 19386559Sjake 19486559Sjake/* Unroll the inner loop, this sometimes helps, sometimes hinders. 19586559Sjake * Very mucy CPU dependant */ 19686559Sjake#ifndef DES_UNROLL 19786559Sjake#undef DES_UNROLL 19886559Sjake#endif 19986559Sjake 20086559Sjake/* These default values were supplied by 20186559Sjake * Peter Gutman <pgut001@cs.auckland.ac.nz> 20286559Sjake * They are only used if nothing else has been defined */ 20386559Sjake#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) 20486559Sjake/* Special defines which change the way the code is built depending on the 20586559Sjake CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find 20686559Sjake even newer MIPS CPU's, but at the moment one size fits all for 20786559Sjake optimization options. Older Sparc's work better with only UNROLL, but 20886559Sjake there's no way to tell at compile time what it is you're running on */ 20986559Sjake 21086559Sjake#if defined( sun ) /* Newer Sparc's */ 21186559Sjake# define DES_PTR 21286559Sjake# define DES_RISC1 21386559Sjake# define DES_UNROLL 21486559Sjake#elif defined( __ultrix ) /* Older MIPS */ 21586559Sjake# define DES_PTR 21686559Sjake# define DES_RISC2 21786559Sjake# define DES_UNROLL 21886559Sjake#elif defined( __osf1__ ) /* Alpha */ 21986559Sjake# define DES_PTR 22086559Sjake# define DES_RISC2 22186559Sjake#elif defined ( _AIX ) /* RS6000 */ 22286559Sjake /* Unknown */ 22386559Sjake#elif defined( __hpux ) /* HP-PA */ 22486559Sjake /* Unknown */ 22586559Sjake#elif defined( __aux ) /* 68K */ 22686559Sjake /* Unknown */ 22786559Sjake#elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ 22886559Sjake# define DES_UNROLL 22986559Sjake#elif defined( __sgi ) /* Newer MIPS */ 23086559Sjake# define DES_PTR 23186559Sjake# define DES_RISC2 23286559Sjake# define DES_UNROLL 233238405Sjkim#elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ 23486559Sjake# define DES_PTR 23586559Sjake# define DES_RISC1 23686559Sjake# define DES_UNROLL 23786559Sjake#endif /* Systems-specific speed defines */ 23886559Sjake#endif 23986559Sjake 24086559Sjake#endif /* DES_DEFAULT_OPTIONS */ 24186559Sjake#endif /* HEADER_DES_LOCL_H */ 242280304Sjkim#ifdef __cplusplus 243280304Sjkim} 244280304Sjkim#endif 245