From a918da4d61d28be61a12605c9d35e2cf3966d866 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 11 Jul 2011 17:05:34 -0600 Subject: ffs: new module Libvirt wants to use ffs() to avoid dragging in -lm for log2(). * modules/ffs: New file. * m4/ffs.m4: Likewise. * lib/ffs.c: Likewise. * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default. * modules/strings (Makefile.am): Substitute witness. (Depends-on): Add c++defs. * lib/strings.in.h (ffs): Declare. * modules/ffs-tests: New test file. * tests/test-ffs.c: Test new module. * MODULES.html.sh (Integer arithmetic functions): Mention it. * doc/posix-functions/ffs.texi (ffs): Likewise. Signed-off-by: Eric Blake --- MODULES.html.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'MODULES.html.sh') diff --git a/MODULES.html.sh b/MODULES.html.sh index f46cc56a26..923fba52f9 100755 --- a/MODULES.html.sh +++ b/MODULES.html.sh @@ -1736,6 +1736,7 @@ func_all_modules () func_begin_table func_module count-one-bits + func_module ffs func_module gcd func_module minmax func_end_table -- cgit v1.2.1