diff options
author | jsing <> | 2023-02-14 18:06:06 +0000 |
---|---|---|
committer | jsing <> | 2023-02-14 18:06:06 +0000 |
commit | c7a2e8ba6107b06cc3b3a4ac5577d2469643f574 (patch) | |
tree | 18f330ead658ee8e57f7d78eeed4c2f5c890a3a7 /src/lib/libcrypto/ui/ui_null.c | |
parent | c4da4796b5f8b3f5445265388a82bebcaff2fc44 (diff) | |
download | openbsd-c7a2e8ba6107b06cc3b3a4ac5577d2469643f574.tar.gz openbsd-c7a2e8ba6107b06cc3b3a4ac5577d2469643f574.tar.bz2 openbsd-c7a2e8ba6107b06cc3b3a4ac5577d2469643f574.zip |
Reimplement BN_num_bits_word().
Provide a simpler and more readable bn_word_clz() function that returns the
number of leading zeros for a given BN_ULONG, then implement
BN_num_bits_word() using bn_word_clz(). This is a hot path and
bn_word_clz() can now be replaced with architecture specific versions where
possible.
ok tb@
Diffstat (limited to 'src/lib/libcrypto/ui/ui_null.c')
0 files changed, 0 insertions, 0 deletions