diff options
author | Andy Polyakov <appro@openssl.org> | 1999-10-07 12:03:59 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 1999-10-07 12:03:59 +0000 |
commit | 2dae04d03880cc88a48700e423ee94f9b94242bd (patch) | |
tree | 13ead4e5a13244bfc7b2c6a0fcb6cc3fe8436d2f /crypto/opensslconf.h.in | |
parent | def38e38ec4fa5795414ee6536f3806f7fe7db13 (diff) | |
download | openssl-new-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.in | 16 |
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 |