diff options
Diffstat (limited to 'src/lib/libcrypto/arch/powerpc64')
-rw-r--r-- | src/lib/libcrypto/arch/powerpc64/opensslconf.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/lib/libcrypto/arch/powerpc64/opensslconf.h b/src/lib/libcrypto/arch/powerpc64/opensslconf.h index e4868597f2..fbcc122f48 100644 --- a/src/lib/libcrypto/arch/powerpc64/opensslconf.h +++ b/src/lib/libcrypto/arch/powerpc64/opensslconf.h | |||
@@ -80,66 +80,11 @@ | |||
80 | #undef DES_PTR | 80 | #undef DES_PTR |
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | /* This helps C compiler generate the correct code for multiple functional | ||
84 | * units. It reduces register dependencies at the expense of 2 more | ||
85 | * registers */ | ||
86 | #ifndef DES_RISC1 | ||
87 | #undef DES_RISC1 | ||
88 | #endif | ||
89 | |||
90 | #ifndef DES_RISC2 | ||
91 | #undef DES_RISC2 | ||
92 | #endif | ||
93 | |||
94 | #if defined(DES_RISC1) && defined(DES_RISC2) | ||
95 | YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!! | ||
96 | #endif | ||
97 | |||
98 | /* Unroll the inner loop, this sometimes helps, sometimes hinders. | 83 | /* Unroll the inner loop, this sometimes helps, sometimes hinders. |
99 | * Very much CPU dependent */ | 84 | * Very much CPU dependent */ |
100 | #ifndef DES_UNROLL | 85 | #ifndef DES_UNROLL |
101 | #define DES_UNROLL | 86 | #define DES_UNROLL |
102 | #endif | 87 | #endif |
103 | 88 | ||
104 | /* These default values were supplied by | ||
105 | * Peter Gutman <pgut001@cs.auckland.ac.nz> | ||
106 | * They are only used if nothing else has been defined */ | ||
107 | #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL) | ||
108 | /* Special defines which change the way the code is built depending on the | ||
109 | CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find | ||
110 | even newer MIPS CPU's, but at the moment one size fits all for | ||
111 | optimization options. Older Sparc's work better with only UNROLL, but | ||
112 | there's no way to tell at compile time what it is you're running on */ | ||
113 | |||
114 | #if defined( sun ) /* Newer Sparc's */ | ||
115 | # define DES_PTR | ||
116 | # define DES_RISC1 | ||
117 | # define DES_UNROLL | ||
118 | #elif defined( __ultrix ) /* Older MIPS */ | ||
119 | # define DES_PTR | ||
120 | # define DES_RISC2 | ||
121 | # define DES_UNROLL | ||
122 | #elif defined( __osf1__ ) /* Alpha */ | ||
123 | # define DES_PTR | ||
124 | # define DES_RISC2 | ||
125 | #elif defined ( _AIX ) /* RS6000 */ | ||
126 | /* Unknown */ | ||
127 | #elif defined( __hpux ) /* HP-PA */ | ||
128 | /* Unknown */ | ||
129 | #elif defined( __aux ) /* 68K */ | ||
130 | /* Unknown */ | ||
131 | #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */ | ||
132 | # define DES_UNROLL | ||
133 | #elif defined( __sgi ) /* Newer MIPS */ | ||
134 | # define DES_PTR | ||
135 | # define DES_RISC2 | ||
136 | # define DES_UNROLL | ||
137 | #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */ | ||
138 | # define DES_PTR | ||
139 | # define DES_RISC1 | ||
140 | # define DES_UNROLL | ||
141 | #endif /* Systems-specific speed defines */ | ||
142 | #endif | ||
143 | |||
144 | #endif /* DES_DEFAULT_OPTIONS */ | 89 | #endif /* DES_DEFAULT_OPTIONS */ |
145 | #endif /* HEADER_DES_LOCL_H */ | 90 | #endif /* HEADER_DES_LOCL_H */ |