diff options
| author | jsing <> | 2025-01-27 14:02:32 +0000 |
|---|---|---|
| committer | jsing <> | 2025-01-27 14:02:32 +0000 |
| commit | d97873f8db01cd052f45675db2ed3d9584c93c44 (patch) | |
| tree | 66ed89ba37c98ae1cad1f42ebb47d16e63ee92bd /src/lib/libcrypto/arch/amd64 | |
| parent | 1fa0a0fb6f23c9670ea0757b0a84215eeb539867 (diff) | |
| download | openbsd-d97873f8db01cd052f45675db2ed3d9584c93c44.tar.gz openbsd-d97873f8db01cd052f45675db2ed3d9584c93c44.tar.bz2 openbsd-d97873f8db01cd052f45675db2ed3d9584c93c44.zip | |
Mop up RC4_INDEX.
The RC4_INDEX define switches between base pointer indexing and per-byte
pointer increment. This supposedly made a huge difference to performance
on x86 at some point, however compilers have improved somewhat since then.
There is no change (or effectively no change) in generated assembly on
a the majority of LLVM platforms and even when there is some change
(e.g. aarch64), there is no noticable performance difference.
Simplify the (still messy) macros/code and mop up RC4_INDEX.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/arch/amd64')
| -rw-r--r-- | src/lib/libcrypto/arch/amd64/opensslconf.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/libcrypto/arch/amd64/opensslconf.h b/src/lib/libcrypto/arch/amd64/opensslconf.h index 7615744a6b..4187a44c86 100644 --- a/src/lib/libcrypto/arch/amd64/opensslconf.h +++ b/src/lib/libcrypto/arch/amd64/opensslconf.h | |||
| @@ -60,13 +60,6 @@ | |||
| 60 | #undef THIRTY_TWO_BIT | 60 | #undef THIRTY_TWO_BIT |
| 61 | #endif | 61 | #endif |
| 62 | 62 | ||
| 63 | #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H) | ||
| 64 | #define CONFIG_HEADER_RC4_LOCL_H | ||
| 65 | /* if this is defined data[i] is used instead of *data, this is a %20 | ||
| 66 | * speedup on x86 */ | ||
| 67 | #undef RC4_INDEX | ||
| 68 | #endif | ||
| 69 | |||
| 70 | #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) | 63 | #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H) |
| 71 | #define CONFIG_HEADER_BF_LOCL_H | 64 | #define CONFIG_HEADER_BF_LOCL_H |
| 72 | #undef BF_PTR | 65 | #undef BF_PTR |
