summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_err.c
diff options
context:
space:
mode:
authorjsing <>2023-02-14 18:06:06 +0000
committerjsing <>2023-02-14 18:06:06 +0000
commitc7a2e8ba6107b06cc3b3a4ac5577d2469643f574 (patch)
tree18f330ead658ee8e57f7d78eeed4c2f5c890a3a7 /src/lib/libcrypto/ui/ui_err.c
parentc4da4796b5f8b3f5445265388a82bebcaff2fc44 (diff)
downloadopenbsd-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_err.c')
0 files changed, 0 insertions, 0 deletions