summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib
diff options
context:
space:
mode:
authorjsing <>2023-06-21 07:48:41 +0000
committerjsing <>2023-06-21 07:48:41 +0000
commitb0edbf3f98eba4b1effd31584dae0af06eb2deff (patch)
tree279fd7ba83f6adb19a12c4a0d34196850a955e43 /src/lib/libc/stdlib
parent88e97173c6cf4f4ec8c6138cff25d7b1c51a54e9 (diff)
downloadopenbsd-b0edbf3f98eba4b1effd31584dae0af06eb2deff.tar.gz
openbsd-b0edbf3f98eba4b1effd31584dae0af06eb2deff.tar.bz2
openbsd-b0edbf3f98eba4b1effd31584dae0af06eb2deff.zip
Provide and use bn_clzw() in place of bn_word_clz().
On some architectures, we can provide an optimised (often single instruction) count-leading-zero implementation. In order to do this effectively, provide bn_clzw() as a static inline that can be replaced by an architecture specific version. The default implementation defers to the bn_word_clz() function (which may also be architecture specific). ok tb@
Diffstat (limited to 'src/lib/libc/stdlib')
0 files changed, 0 insertions, 0 deletions