diff options
author | jsing <> | 2023-01-11 04:26:24 +0000 |
---|---|---|
committer | jsing <> | 2023-01-11 04:26:24 +0000 |
commit | 91bbe13c96f10a7f8b2ff6d49eb161bd1334f30e (patch) | |
tree | ad039edfe3e30f38850a91522a3c75065f8943ff /src/lib/libcrypto/dsa/dsa_gen.c | |
parent | af9a479c0f4683a58c16c40197d66aca318e29e6 (diff) | |
download | openbsd-91bbe13c96f10a7f8b2ff6d49eb161bd1334f30e.tar.gz openbsd-91bbe13c96f10a7f8b2ff6d49eb161bd1334f30e.tar.bz2 openbsd-91bbe13c96f10a7f8b2ff6d49eb161bd1334f30e.zip |
Replace BN_lshift1()/BN_rshift1() with calls to BN_lshift()/BN_rshift().
Currently, BN_lshift1() and BN_rshift1() are separate implementations
that are intended to be faster since the shift is known (and only one bit
crosses a word boundary). However, with the rewrite of BN_lshift() and
BN_rshift(), they are either slower or only minimally faster (depending
on architecture).
Avoid duplication and turn BN_lshift1()/BN_rshift1() into functions that
call inlined versions of BN_lshift()/BN_rshift(), making BN_lshift() and
BN_rshift() call the same inlined implementation. This results in a single
implementation and BN_lshift1()/BN_rshift1() that out perform the previous
versions (in part due to compiler optimisation).
Now that none of the original code exists, replace the license and
copyright for this file.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/dsa/dsa_gen.c')
0 files changed, 0 insertions, 0 deletions