view modules/ffs-tests @ 15390:25fd80a52583

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 <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Mon, 11 Jul 2011 17:05:34 -0600
parents
children
line wrap: on
line source

Files:
tests/test-ffs.c
tests/macros.h
tests/signature.h

Depends-on:

configure.ac:

Makefile.am:
TESTS += test-ffs
check_PROGRAMS += test-ffs