summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/arch/powerpc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/arch/powerpc/opensslconf.h55
-rw-r--r--src/lib/libcrypto/arch/powerpc64/opensslconf.h55
2 files changed, 0 insertions, 110 deletions
diff --git a/src/lib/libcrypto/arch/powerpc/opensslconf.h b/src/lib/libcrypto/arch/powerpc/opensslconf.h
index 4fb2f080e6..5c09d6a158 100644
--- a/src/lib/libcrypto/arch/powerpc/opensslconf.h
+++ b/src/lib/libcrypto/arch/powerpc/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)
100YOU 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 */
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)
95YOU 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 */