opensslconf-powerpc.h revision 162915
1139825Simp/* $FreeBSD: head/secure/lib/libcrypto/opensslconf-powerpc.h 162915 2006-10-01 07:56:51Z simon $ */
252800Sphk/* opensslconf.h */
352800Sphk/* WARNING: Generated automatically from opensslconf.h.in by Configure. */
452800Sphk
552800Sphk/* OpenSSL was configured with the following options: */
652800Sphk#ifndef OPENSSL_DOING_MAKEDEPEND
752800Sphk
8139825Simp/* Disabled by default in OpenSSL 0.9.8. */
9139825Simp#ifndef OPENSSL_NO_CAMELLIA
10139825Simp# define OPENSSL_NO_CAMELLIA
1152800Sphk#endif
1252800Sphk/* libgmp is not in the FreeBSD base system. */
1352800Sphk#ifndef OPENSSL_NO_GMP
1452800Sphk# define OPENSSL_NO_GMP
1552800Sphk#endif
1657616Sbillf/* The Kerberos 5 support is MIT-specific. */
1752800Sphk#ifndef OPENSSL_NO_KRB5
1852800Sphk# define OPENSSL_NO_KRB5
1952800Sphk#endif
2052800Sphk
2152800Sphk#endif /* OPENSSL_DOING_MAKEDEPEND */
2252800Sphk#ifndef OPENSSL_THREADS
2352800Sphk# define OPENSSL_THREADS
2452800Sphk#endif
25116192Sobrien#ifndef OPENSSL_NO_STATIC_ENGINE
26116192Sobrien# define OPENSSL_NO_STATIC_ENGINE
27116192Sobrien#endif
2852800Sphk
2952800Sphk/* The OPENSSL_NO_* macros are also defined as NO_* if the application
3052800Sphk   asks for it.  This is a transient feature that is provided for those
3152800Sphk   who haven't had the time to do the appropriate changes in their
3252800Sphk   applications.  */
3352800Sphk#ifdef OPENSSL_ALGORITHM_DEFINES
3452800Sphk# if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
3552800Sphk#  define NO_GMP
3652800Sphk# endif
3752800Sphk# if defined(OPENSSL_NO_KRB5) && !defined(NO_KRB5)
3852800Sphk#  define NO_KRB5
3957519Sphk# endif
4062924Sphk# endif
4162924Sphk#ifdef OPENSSL_OTHER_DEFINES
4262924Sphk# ifndef NO_ASM
4352800Sphk#  define NO_ASM
4462924Sphk# endif
45119288Simp#endif
46119288Simp
4762924Sphk/* crypto/opensslconf.h.in */
4862924Sphk
4962924Sphk/* Generate 80386 code? */
5062924Sphk#undef I386_ONLY
5162924Sphk
5262924Sphk#if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
5362924Sphk#if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
5452800Sphk#define ENGINESDIR "/usr/lib/engines"
5552800Sphk#define OPENSSLDIR "/etc/ssl"
5652800Sphk#endif
5752800Sphk#endif
5852800Sphk
5952800Sphk#undef OPENSSL_UNISTD
6058701Simp#define OPENSSL_UNISTD <unistd.h>
6157519Sphk
6257519Sphk#undef OPENSSL_EXPORT_VAR_AS_FUNCTION
6357519Sphk
6457519Sphk#if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
6557519Sphk#define IDEA_INT unsigned int
6657519Sphk#endif
6757519Sphk
6857519Sphk#if defined(HEADER_MD2_H) && !defined(MD2_INT)
6952800Sphk#define MD2_INT unsigned int
7052800Sphk#endif
7152800Sphk
7252800Sphk#if defined(HEADER_RC2_H) && !defined(RC2_INT)
7352800Sphk/* I need to put in a mod for the alpha - eay */
7452800Sphk#define RC2_INT unsigned int
7552800Sphk#endif
7652800Sphk
7752800Sphk#if defined(HEADER_RC4_H)
7852800Sphk#if !defined(RC4_INT)
7952800Sphk/* using int types make the structure larger but make the code faster
8052800Sphk * on most boxes I have tested - up to %20 faster. */
8152800Sphk/*
8252800Sphk * I don't know what does "most" mean, but declaring "int" is a must on:
8352800Sphk * - Intel P6 because partial register stalls are very expensive;
8452800Sphk * - elder Alpha because it lacks byte load/store instructions;
8552800Sphk */
8652800Sphk#define RC4_INT unsigned int
8752800Sphk#endif
8852800Sphk#if !defined(RC4_CHUNK)
8952800Sphk/*
9052800Sphk * This enables code handling data aligned at natural CPU word
9152800Sphk * boundary. See crypto/rc4/rc4_enc.c for further details.
9252800Sphk */
9352800Sphk#undef RC4_CHUNK
9452800Sphk#endif
9552800Sphk#endif
9652800Sphk
9752800Sphk#if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
9852800Sphk/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
9952800Sphk * %20 speed up (longs are 8 bytes, int's are 4). */
10052800Sphk#ifndef DES_LONG
10152800Sphk#define DES_LONG unsigned long
10252800Sphk#endif
10352800Sphk#endif
10452800Sphk
10552800Sphk#if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
10652800Sphk#define CONFIG_HEADER_BN_H
10752800Sphk#define BN_LLONG
10852800Sphk
10952800Sphk/* Should we define BN_DIV2W here? */
11052800Sphk
11152800Sphk/* Only one for the following should be defined */
11252800Sphk/* The prime number generation stuff may not work when
11352800Sphk * EIGHT_BIT but I don't care since I've only used this mode
11452800Sphk * for debuging the bignum libraries */
11552800Sphk#undef SIXTY_FOUR_BIT_LONG
11652800Sphk#undef SIXTY_FOUR_BIT
11752800Sphk#define THIRTY_TWO_BIT
11852800Sphk#undef SIXTEEN_BIT
11952800Sphk#undef EIGHT_BIT
12052800Sphk#endif
12152800Sphk
12252800Sphk#if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
12352800Sphk#define CONFIG_HEADER_RC4_LOCL_H
12452800Sphk/* if this is defined data[i] is used instead of *data, this is a %20
12552800Sphk * speedup on x86 */
12652800Sphk#define RC4_INDEX
12752800Sphk#endif
12852800Sphk
12952800Sphk#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
13052800Sphk#define CONFIG_HEADER_BF_LOCL_H
13152800Sphk#undef BF_PTR
13252800Sphk#endif /* HEADER_BF_LOCL_H */
13352800Sphk
13452800Sphk#if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
13552800Sphk#define CONFIG_HEADER_DES_LOCL_H
13652800Sphk#ifndef DES_DEFAULT_OPTIONS
13752800Sphk/* the following is tweaked from a config script, that is why it is a
13852800Sphk * protected undef/define */
13952800Sphk#ifndef DES_PTR
14052800Sphk#define DES_PTR
14152800Sphk#endif
14252800Sphk
14352800Sphk/* This helps C compiler generate the correct code for multiple functional
14452800Sphk * units.  It reduces register dependancies at the expense of 2 more
14552800Sphk * registers */
14652800Sphk#ifndef DES_RISC1
14752800Sphk#define DES_RISC1
14852800Sphk#endif
14952800Sphk
15052800Sphk#ifndef DES_RISC2
15152800Sphk#undef DES_RISC2
15252800Sphk#endif
15352800Sphk
15452800Sphk#if defined(DES_RISC1) && defined(DES_RISC2)
15552800SphkYOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
15652800Sphk#endif
15752800Sphk
15852800Sphk/* Unroll the inner loop, this sometimes helps, sometimes hinders.
15952800Sphk * Very mucy CPU dependant */
16052800Sphk#ifndef DES_UNROLL
16152800Sphk#define DES_UNROLL
16252800Sphk#endif
16352800Sphk
164105213Sphk/* These default values were supplied by
16552800Sphk * Peter Gutman <pgut001@cs.auckland.ac.nz>
16652800Sphk * They are only used if nothing else has been defined */
16752800Sphk#if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
168142407Simp/* Special defines which change the way the code is built depending on the
169142407Simp   CPU and OS.  For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
170105213Sphk   even newer MIPS CPU's, but at the moment one size fits all for
171105213Sphk   optimization options.  Older Sparc's work better with only UNROLL, but
17252800Sphk   there's no way to tell at compile time what it is you're running on */
17352800Sphk
17452800Sphk#if defined( sun )		/* Newer Sparc's */
17557519Sphk#  define DES_PTR
17654966Seivind#  define DES_RISC1
177105213Sphk#  define DES_UNROLL
178105213Sphk#elif defined( __ultrix )	/* Older MIPS */
17952800Sphk#  define DES_PTR
18054966Seivind#  define DES_RISC2
181105213Sphk#  define DES_UNROLL
18252800Sphk#elif defined( __osf1__ )	/* Alpha */
18352800Sphk#  define DES_PTR
18452800Sphk#  define DES_RISC2
18552800Sphk#elif defined ( _AIX )		/* RS6000 */
18652800Sphk  /* Unknown */
18752800Sphk#elif defined( __hpux )		/* HP-PA */
18852800Sphk  /* Unknown */
18952800Sphk#elif defined( __aux )		/* 68K */
19052800Sphk  /* Unknown */
19152800Sphk#elif defined( __dgux )		/* 88K (but P6 in latest boxes) */
192129823Sjulian#  define DES_UNROLL
193129823Sjulian#elif defined( __sgi )		/* Newer MIPS */
194129823Sjulian#  define DES_PTR
195129823Sjulian#  define DES_RISC2
196129823Sjulian#  define DES_UNROLL
197129823Sjulian#elif defined( i386 )		/* x86 boxes, should be gcc */
198129823Sjulian#  define DES_PTR
199129823Sjulian#  define DES_RISC1
200129823Sjulian#  define DES_UNROLL
20152800Sphk#endif /* Systems-specific speed defines */
20252800Sphk#endif
20352800Sphk
20452800Sphk#endif /* DES_DEFAULT_OPTIONS */
20552800Sphk#endif /* HEADER_DES_LOCL_H */
20652800Sphk