diff options
author | Bruno Haible <bruno@clisp.org> | 2012-03-11 14:42:17 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-03-11 23:24:44 +0100 |
commit | 6d131d20837bfac5a0c48692485debf3b28bfae2 (patch) | |
tree | fb085a9a48a9d476c16c67df15f07a5d324204ca /tests/test-math-c++.cc | |
parent | 58f8ff534c6e026b29c0d2cbba9c0f64c9bc755b (diff) | |
download | gnulib-6d131d20837bfac5a0c48692485debf3b28bfae2.tar.gz |
New module 'log2'.
* lib/math.in.h (log2): New declaration.
* lib/log2.c: New file.
* m4/log2.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
REPLACE_LOG2.
* modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
REPLACE_LOG2.
* modules/log2: New file.
* tests/test-math-c++.cc: Check the declaration of log2.
* doc/posix-functions/log2.texi: Mention the new module and the IRIX
and OSF/1 and Cygwin problems.
Diffstat (limited to 'tests/test-math-c++.cc')
-rw-r--r-- | tests/test-math-c++.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-math-c++.cc b/tests/test-math-c++.cc index 15970441c0..efaadebed5 100644 --- a/tests/test-math-c++.cc +++ b/tests/test-math-c++.cc @@ -241,6 +241,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::logl, long double, (long double)); SIGNATURE_CHECK (GNULIB_NAMESPACE::log10f, float, (float)); #endif +#if GNULIB_TEST_LOG2 +SIGNATURE_CHECK (GNULIB_NAMESPACE::log2, double, (double)); +#endif + #if GNULIB_TEST_MODFF SIGNATURE_CHECK (GNULIB_NAMESPACE::modff, float, (float, float *)); #endif |