diff options
author | Bruno Haible <bruno@clisp.org> | 2011-10-09 19:05:54 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-10-09 20:37:33 +0200 |
commit | 20f0673b1b22f84e39b3bacae027cdc21be2ed39 (patch) | |
tree | 4ef41ef005b1a93f0a1d5edc980bd6dcf5a65537 /modules/rintf | |
parent | 624e3c286e69a92e1610b28020c966c84f61b531 (diff) | |
download | gnulib-20f0673b1b22f84e39b3bacae027cdc21be2ed39.tar.gz |
New module 'rintf'.
* lib/math.in.h (rintf): New declaration.
* lib/rintf.c: New file.
* m4/rintf.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
* modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
* modules/rintf: New file.
* tests/test-math-c++.cc: Check the declaration of rintf.
* doc/posix-functions/rintf.texi: Mention the new module.
Diffstat (limited to 'modules/rintf')
-rw-r--r-- | modules/rintf | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/rintf b/modules/rintf new file mode 100644 index 0000000000..92b93a399a --- /dev/null +++ b/modules/rintf @@ -0,0 +1,32 @@ +Description: +rintf() function: round according to the current rounding mode. + +Files: +lib/rintf.c +lib/rint.c +m4/rintf.m4 +m4/mathfunc.m4 + +Depends-on: +math + +configure.ac: +gl_FUNC_RINTF +if test $HAVE_RINTF = 0; then + AC_LIBOBJ([rintf]) +fi +gl_MATH_MODULE_INDICATOR([rintf]) + +Makefile.am: + +Include: +<math.h> + +Link: +$(RINTF_LIBM) + +License: +LGPL + +Maintainer: +Bruno Haible |