diff options
author | Bruno Haible <bruno@clisp.org> | 2011-10-09 15:42:35 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-10-09 15:42:35 +0200 |
commit | f96458bc2604b8ce5f632387d2d948287376b023 (patch) | |
tree | 63ff0f8722e872cd4b3bff16fed960903f23270f /modules/copysignf | |
parent | 48a6564774f35e0c0b2ca55c73ccb26067396439 (diff) | |
download | gnulib-f96458bc2604b8ce5f632387d2d948287376b023.tar.gz |
New module 'copysignf'.
* lib/math.in.h (copysignf): New declaration.
* lib/copysignf.c: New file.
* m4/copysignf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
* modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
HAVE_COPYSIGNF.
* modules/copysignf: New file.
* tests/test-math-c++.cc: Check the declaration of copysignf.
* doc/posix-functions/copysignf.texi: Mention the new module.
Diffstat (limited to 'modules/copysignf')
-rw-r--r-- | modules/copysignf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/copysignf b/modules/copysignf new file mode 100644 index 0000000000..a446046ca1 --- /dev/null +++ b/modules/copysignf @@ -0,0 +1,32 @@ +Description: +copysignf() function: copy sign into another 'float' number. + +Files: +lib/copysignf.c +m4/copysignf.m4 +m4/mathfunc.m4 + +Depends-on: +math +signbit [test $HAVE_COPYSIGNF = 0] + +configure.ac: +gl_FUNC_COPYSIGNF +if test $HAVE_COPYSIGNF = 0; then + AC_LIBOBJ([copysignf]) +fi +gl_MATH_MODULE_INDICATOR([copysignf]) + +Makefile.am: + +Include: +<math.h> + +Link: +$(COPYSIGNF_LIBM) + +License: +LGPL + +Maintainer: +Bruno Haible |