diff options
| author | jsing <> | 2023-02-14 18:06:06 +0000 |
|---|---|---|
| committer | jsing <> | 2023-02-14 18:06:06 +0000 |
| commit | bd079ed10dbf7446265e4066080fb42d9bdd707c (patch) | |
| tree | 18f330ead658ee8e57f7d78eeed4c2f5c890a3a7 /src/lib/libc/stdlib | |
| parent | 99e2cf8ee8d687d88da1f6d846eace31a27515e3 (diff) | |
| download | openbsd-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/libc/stdlib')
0 files changed, 0 insertions, 0 deletions
