diff options
author | jsing <> | 2023-02-16 11:13:05 +0000 |
---|---|---|
committer | jsing <> | 2023-02-16 11:13:05 +0000 |
commit | 02f91f3325f965a313f0cffe5053a084d05a84ea (patch) | |
tree | a71844b7fce221564ef504741b86d1f18d98a9eb /src/lib/libc/stdlib/div.c | |
parent | 67bcdfeb3f62f73d8ba148704bccbfb2cff0f697 (diff) | |
download | openbsd-02f91f3325f965a313f0cffe5053a084d05a84ea.tar.gz openbsd-02f91f3325f965a313f0cffe5053a084d05a84ea.tar.bz2 openbsd-02f91f3325f965a313f0cffe5053a084d05a84ea.zip |
Enable s2n-bignum word_clz() on amd64.
The BN_num_bits_word() function is a hot path, being called more than
80 million times during a libcrypto regress run. The word_clz()
implementation uses five instructions to do the same as the generic code
that uses more than 60 instructions.
Discussed with tb@
Diffstat (limited to 'src/lib/libc/stdlib/div.c')
0 files changed, 0 insertions, 0 deletions