diff options
author | Bruno Haible <bruno@clisp.org> | 2012-03-11 20:50:08 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-03-11 23:28:29 +0100 |
commit | 181e39ab350fae479c96e345262d7b6a53082923 (patch) | |
tree | 9d4dce2f4efc2c7323317b8b0489f421a91ea2de /modules/log2l | |
parent | 93b59558b7e1f17f4dfff9cbd0e1437613a14b34 (diff) | |
download | gnulib-181e39ab350fae479c96e345262d7b6a53082923.tar.gz |
New module 'log2l'.
* lib/math.in.h (log2l): New declaration.
* lib/log2l.c: New file.
* m4/log2l.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
REPLACE_LOG2L.
* modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
REPLACE_LOG2L.
* modules/log2l: New file.
* tests/test-math-c++.cc: Check the declaration of log2l.
* doc/posix-functions/log2l.texi: Mention the new module and the IRIX
and OSF/1 problems.
Diffstat (limited to 'modules/log2l')
-rw-r--r-- | modules/log2l | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/modules/log2l b/modules/log2l new file mode 100644 index 0000000000..848f6d4f04 --- /dev/null +++ b/modules/log2l @@ -0,0 +1,35 @@ +Description: +log2() function: base 2 logarithm. + +Files: +lib/log2l.c +m4/log2l.m4 + +Depends-on: +math +extensions +log2 [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] +isnanl [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] +frexpl [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] +logl [{ test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; } && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] + +configure.ac: +gl_FUNC_LOG2L +if test $HAVE_LOG2L = 0 || test $REPLACE_LOG2L = 1; then + AC_LIBOBJ([log2l]) +fi +gl_MATH_MODULE_INDICATOR([log2l]) + +Makefile.am: + +Include: +<math.h> + +Link: +$(LOG2L_LIBM) + +License: +LGPL + +Maintainer: +Bruno Haible |