diff options
author | Bruno Haible <bruno@clisp.org> | 2012-04-03 21:13:26 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-04-03 21:14:16 +0200 |
commit | d6d7a9dc245badda81a34e336dda7baaeee78322 (patch) | |
tree | 3392d28d0bf27211ae246208ed2620f2c9deed42 /modules/ilogbf | |
parent | 2d538ff2c61e29c9a323b5e0f300ccc3610cebab (diff) | |
download | gnulib-d6d7a9dc245badda81a34e336dda7baaeee78322.tar.gz |
New module 'ilogbf'.
* lib/math.in.h (ilogbf): New declaration.
* lib/ilogbf.c: New file.
* m4/ilogbf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
REPLACE_ILOGBF.
* modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
REPLACE_ILOGBF.
* modules/ilogbf: New file.
* tests/test-math-c++.cc: Check the declaration of ilogbf.
* doc/posix-functions/ilogbf.texi: Mention the new module.
Diffstat (limited to 'modules/ilogbf')
-rw-r--r-- | modules/ilogbf | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/modules/ilogbf b/modules/ilogbf new file mode 100644 index 0000000000..925078b6c7 --- /dev/null +++ b/modules/ilogbf @@ -0,0 +1,36 @@ +Description: +ilogbf() function: get exponent as integer. + +Files: +lib/ilogbf.c +lib/ilogb.c +m4/ilogbf.m4 +m4/mathfunc.m4 + +Depends-on: +math +extensions +isfinite [test $HAVE_ILOGBF = 0 || test $REPLACE_ILOGBF = 1] +frexpf [test $HAVE_ILOGBF = 0 || test $REPLACE_ILOGBF = 1] +isnanf [test $HAVE_ILOGBF = 0 || test $REPLACE_ILOGBF = 1] + +configure.ac: +gl_FUNC_ILOGBF +if test $HAVE_ILOGBF = 0 || test $REPLACE_ILOGBF = 1; then + AC_LIBOBJ([ilogbf]) +fi +gl_MATH_MODULE_INDICATOR([ilogbf]) + +Makefile.am: + +Include: +<math.h> + +Link: +$(ILOGBF_LIBM) + +License: +LGPL + +Maintainer: +Bruno Haible |