aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/opensslconf.h.in
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>1999-10-07 12:03:59 +0000
committerAndy Polyakov <appro@openssl.org>1999-10-07 12:03:59 +0000
commit2dae04d03880cc88a48700e423ee94f9b94242bd (patch)
tree13ead4e5a13244bfc7b2c6a0fcb6cc3fe8436d2f /crypto/opensslconf.h.in
parentdef38e38ec4fa5795414ee6536f3806f7fe7db13 (diff)
downloadopenssl-2dae04d03880cc88a48700e423ee94f9b94242bd.tar.gz
RC4 tune-up featuring 30-40% performance improvement on most RISC
platforms. See crypto/rc4/rc4_enc.c for further details.
Diffstat (limited to 'crypto/opensslconf.h.in')
-rw-r--r--crypto/opensslconf.h.in16
1 files changed, 15 insertions, 1 deletions
diff --git a/crypto/opensslconf.h.in b/crypto/opensslconf.h.in
index e4a8f8ad54..522545e0aa 100644
--- a/crypto/opensslconf.h.in
+++ b/crypto/opensslconf.h.in
@@ -25,11 +25,25 @@
#define RC2_INT unsigned int
#endif
-#if defined(HEADER_RC4_H) && !defined(RC4_INT)
+#if defined(HEADER_RC4_H)
+#if !defined(RC4_INT)
/* using int types make the structure larger but make the code faster
* on most boxes I have tested - up to %20 faster. */
+/*
+ * I don't know what does "most" mean, but declaring "int" is a must on:
+ * - Intel P6 because partial register stalls are very expensive;
+ * - elder Alpha because it lacks byte load/store instructions;
+ */
#define RC4_INT unsigned int
#endif
+#if !defined(RC4_CHUNK)
+/*
+ * This enables code handling data aligned at natural CPU word
+ * boundary. See crypto/rc4/rc4_enc.c for further details.
+ */
+#undef RC4_CHUNK
+#endif
+#endif
#if defined(HEADER_DES_H) && !defined(DES_LONG)
/* If this is set to 'unsigned int' on a DEC Alpha, this gives about a