diff options
author | jsing <> | 2023-01-05 04:51:13 +0000 |
---|---|---|
committer | jsing <> | 2023-01-05 04:51:13 +0000 |
commit | 2feadbb4023f1dfdb2ca4d0bbf07c8bb21440b19 (patch) | |
tree | 14009b83106fd4fa918b0f183c1537afa8848e46 /src/regress | |
parent | 95798f26b671da642392d4eafa1304fc0cd2139b (diff) | |
download | openbsd-2feadbb4023f1dfdb2ca4d0bbf07c8bb21440b19.tar.gz openbsd-2feadbb4023f1dfdb2ca4d0bbf07c8bb21440b19.tar.bz2 openbsd-2feadbb4023f1dfdb2ca4d0bbf07c8bb21440b19.zip |
Rewrite BN_rshift()
This improves readability and eliminates special handling for various
cases, making the code cleaner and closer to constant time.
Basic benchmarking shows a performance gain on modern 64 bit architectures,
while there is a decrease on legacy 32 bit architectures (i386),
particularly for the zero bit shift case (which is now handled in the
same code path).
ok tb@
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions