diff options
author | Jonathan Swinney <jswinney@amazon.com> | 2024-10-18 18:55:07 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2025-01-06 11:43:36 +0100 |
commit | ebe34f9a62630b45a825bc07a2e9cf52731e836e (patch) | |
tree | d67734e0db11499a2caba29ed031b2c066b2c59b /apps/cms.c | |
parent | openssl-pkeyutl.pod.in: update from SHA-1 to SHA256, fixing default values an... (diff) | |
download | openssl-ebe34f9a62630b45a825bc07a2e9cf52731e836e.tar.xz openssl-ebe34f9a62630b45a825bc07a2e9cf52731e836e.zip |
Optimize x86/aarch64 MD5 implementation
As suggested in https://github.com/animetosho/md5-optimisation?tab=readme-ov-file#dependency-shortcut-in-g-function,
we can delay the dependency on 'x' by recognizing that ((x & z) | (y & ~z))
is equivalent to ((x & z) + (y + ~z)) in this scenario, and we can perform
those additions independently, leaving our dependency on x to the final
addition. This speeds it up around 5% on both platforms.
Signed-off-by: Oli Gillespie <ogillesp@amazon.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Hugo Landau <hlandau@devever.net>
(Merged from https://github.com/openssl/openssl/pull/25737)
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions