• Eric Blake's avatar
    ffs: new module · a918da4d
    Eric Blake authored
    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: default avatarEric Blake <eblake@redhat.com>
    a918da4d
Name
Last commit
Last update
..
Copyright Loading commit data...
glibc-functions Loading commit data...
glibc-headers Loading commit data...
pastposix-functions Loading commit data...
posix-functions Loading commit data...
posix-headers Loading commit data...
.cvsignore Loading commit data...
.gitignore Loading commit data...
COPYING.LESSERv2 Loading commit data...
COPYING.LESSERv3 Loading commit data...
COPYINGv2 Loading commit data...
COPYINGv3 Loading commit data...
INSTALL Loading commit data...
INSTALL.ISO Loading commit data...
INSTALL.UTF-8 Loading commit data...
Makefile Loading commit data...
README Loading commit data...
acl-cygwin.txt Loading commit data...
acl-resources.txt Loading commit data...
agpl-3.0.texi Loading commit data...
alloca-opt.texi Loading commit data...
alloca.texi Loading commit data...
c-ctype.texi Loading commit data...
c-strcase.texi Loading commit data...
c-strcaseeq.texi Loading commit data...
c-strcasestr.texi Loading commit data...
c-strstr.texi Loading commit data...
c-strtod.texi Loading commit data...
c-strtold.texi Loading commit data...
configmake.texi Loading commit data...
ctime.texi Loading commit data...
error.texi Loading commit data...
fdl-1.2.texi Loading commit data...
fdl-1.3.texi Loading commit data...
fdl.texi Loading commit data...
func.texi Loading commit data...
gcd.texi Loading commit data...
gendocs_template Loading commit data...
gendocs_template_min Loading commit data...
getdate.texi Loading commit data...
gnu-oids.texi Loading commit data...
gnulib-intro.texi Loading commit data...
gnulib-tool.texi Loading commit data...
gnulib.texi Loading commit data...
gpl-2.0.texi Loading commit data...
gpl-3.0.texi Loading commit data...
havelib.texi Loading commit data...
inet_ntoa.texi Loading commit data...
install.texi Loading commit data...
intprops.texi Loading commit data...
ld-output-def.texi Loading commit data...
ld-version-script.texi Loading commit data...
lgpl-2.1.texi Loading commit data...
lgpl-3.0.texi Loading commit data...
lib-symbol-visibility.texi Loading commit data...
maintain.texi Loading commit data...
make-stds.texi Loading commit data...
manywarnings.texi Loading commit data...
parse-datetime.texi Loading commit data...
quote.texi Loading commit data...
regex.texi Loading commit data...
regexprops-generic.texi Loading commit data...
relocatable-maint.texi Loading commit data...
relocatable.texi Loading commit data...
safe-alloc.texi Loading commit data...
solaris-versions Loading commit data...
standards.texi Loading commit data...
stat-size.texi Loading commit data...
valgrind-tests.texi Loading commit data...
verify.texi Loading commit data...
warnings.texi Loading commit data...