mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
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 <eblake@redhat.com>
13 lines
144 B
Plaintext
13 lines
144 B
Plaintext
Files:
|
|
tests/test-ffs.c
|
|
tests/macros.h
|
|
tests/signature.h
|
|
|
|
Depends-on:
|
|
|
|
configure.ac:
|
|
|
|
Makefile.am:
|
|
TESTS += test-ffs
|
|
check_PROGRAMS += test-ffs
|