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
commitbd079ed10dbf7446265e4066080fb42d9bdd707c (patch)
tree18f330ead658ee8e57f7d78eeed4c2f5c890a3a7 /src/lib/libcrypto/ui/ui_err.c
parent99e2cf8ee8d687d88da1f6d846eace31a27515e3 (diff)
downloadopenbsd-bd079ed10dbf7446265e4066080fb42d9bdd707c.tar.gz
openbsd-bd079ed10dbf7446265e4066080fb42d9bdd707c.tar.bz2
openbsd-bd079ed10dbf7446265e4066080fb42d9bdd707c.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