summaryrefslogtreecommitdiff
path: root/modules/atan2f
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-10-09 00:31:51 +0200
committerBruno Haible <bruno@clisp.org>2011-10-09 00:31:51 +0200
commita365e1e5d3afa9a9f12d38eacaade8cd8fe0020e (patch)
treeafa8b6e0b6d1cf28cc21e9adc2c9e0c2c443cc0d /modules/atan2f
parent63dd3e85d427aba822aa3297ed97abc13b14c06a (diff)
downloadgnulib-a365e1e5d3afa9a9f12d38eacaade8cd8fe0020e.tar.gz
New module 'atan2f'.
* lib/math.in.h (atan2f): New declaration. * lib/atan2f.c: New file. * m4/atan2f.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F. * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F. * modules/atan2f: New file. * tests/test-math-c++.cc: Check the declaration of atan2f. * doc/posix-functions/atan2f.texi: Mention the new module.
Diffstat (limited to 'modules/atan2f')
-rw-r--r--modules/atan2f31
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/atan2f b/modules/atan2f
new file mode 100644
index 0000000000..f2d7dc65ed
--- /dev/null
+++ b/modules/atan2f
@@ -0,0 +1,31 @@
+Description:
+atan2f() function: angle of a point in the plane.
+
+Files:
+lib/atan2f.c
+m4/atan2f.m4
+
+Depends-on:
+math
+atan2 [test $HAVE_ATAN2F = 0]
+
+configure.ac:
+gl_FUNC_ATAN2F
+if test $HAVE_ATAN2F = 0; then
+ AC_LIBOBJ([atan2f])
+fi
+gl_MATH_MODULE_INDICATOR([atan2f])
+
+Makefile.am:
+
+Include:
+<math.h>
+
+Link:
+$(ATAN2F_LIBM)
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible