diff options
author | Bruno Haible <bruno@clisp.org> | 2012-03-06 17:55:54 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2012-03-06 22:54:53 +0100 |
commit | 660b3c45c8ffc6ffbd699bbc3986eb318426709f (patch) | |
tree | 26c5bde58637907c4aab56b576c4024d063ca557 /tests/test-math-c++.cc | |
parent | bf6909e5ca400414ed0730b7f64e48d04993936e (diff) | |
download | gnulib-660b3c45c8ffc6ffbd699bbc3986eb318426709f.tar.gz |
New module 'expm1'.
* lib/math.in.h (expm1): New declaration.
* lib/expm1.c: New file.
* m4/expm1.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
* modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
* modules/expm1: New file.
* tests/test-math-c++.cc: Check the declaration of expm1.
* doc/posix-functions/expm1.texi: Mention the new module.
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 a2911be98d..9648486fb9 100644 --- a/tests/test-math-c++.cc +++ b/tests/test-math-c++.cc @@ -124,6 +124,10 @@ SIGNATURE_CHECK (GNULIB_NAMESPACE::expf, float, (float)); SIGNATURE_CHECK (GNULIB_NAMESPACE::expl, long double, (long double)); #endif +#if GNULIB_TEST_EXPM1 +SIGNATURE_CHECK (GNULIB_NAMESPACE::expm1, double, (double)); +#endif + #if GNULIB_TEST_FABSF SIGNATURE_CHECK (GNULIB_NAMESPACE::fabsf, float, (float)); #endif |