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