summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/div.c
diff options
context:
space:
mode:
authorjsing <>2023-02-16 11:13:05 +0000
committerjsing <>2023-02-16 11:13:05 +0000
commit02f91f3325f965a313f0cffe5053a084d05a84ea (patch)
treea71844b7fce221564ef504741b86d1f18d98a9eb /src/lib/libc/stdlib/div.c
parent67bcdfeb3f62f73d8ba148704bccbfb2cff0f697 (diff)
downloadopenbsd-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