diff options
author | jsing <> | 2023-04-22 14:31:44 +0000 |
---|---|---|
committer | jsing <> | 2023-04-22 14:31:44 +0000 |
commit | d95935343b3c1b937475cb005227b89d04313ff9 (patch) | |
tree | cfab0ac02c72727c2556085ad9fc4cb1b67f7ad2 /src/lib/libssl/ssl_lib.c | |
parent | 38628b8b7ea8c26653d832fbfd401a1b107816a0 (diff) | |
download | openbsd-d95935343b3c1b937475cb005227b89d04313ff9.tar.gz openbsd-d95935343b3c1b937475cb005227b89d04313ff9.tar.bz2 openbsd-d95935343b3c1b937475cb005227b89d04313ff9.zip |
Improve bn_montgomery_multiply_words()
Pull a number of invariants into variables, which avoids repeated loading
from memory on architectures where sufficient registers are available.
Also keep track of the per-iteration carry in a variable, rather than
unnecessarily reading from and writing to memory.
This gives a reasonable performance gain on some architectures (e.g. armv7)
Diffstat (limited to 'src/lib/libssl/ssl_lib.c')
0 files changed, 0 insertions, 0 deletions