diff MODULES.html.sh @ 17037:abd788a78228

count-leading-zeros: new module I needed gcc's clz to determine the most significant bit of a number (useful for things like truncating to a power of 2), and was surprised it is not a standardized function (the opposite direction of finding the least significant bit is given by ffs). This borrows heavily from the design of the count-one-bits module. * modules/count-leading-zeros: New module. * m4/count-leading-zeros.m4: New file. * lib/count-leading-zeros.h: Likewise. * modules/count-leading-zeros-tests: New test. * tests/test-count-leading-zeros.c: New file. * MODULES.html.sh (Integer arithmetic functions): Document it. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Fri, 10 Aug 2012 16:51:08 -0600
parents 1b8b1b06fb47
children a9db8a0359df
line wrap: on
line diff
--- a/MODULES.html.sh	Tue Aug 07 08:53:55 2012 +0200
+++ b/MODULES.html.sh	Fri Aug 10 16:51:08 2012 -0600
@@ -1755,6 +1755,7 @@
   func_echo "$element"
 
   func_begin_table
+  func_module count-leading-zeros
   func_module count-one-bits
   func_module ffs
   func_module ffsl