summaryrefslogtreecommitdiff
path: root/modules/hypotf
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2012-02-29 13:22:12 +0100
committerBruno Haible <bruno@clisp.org>2012-02-29 13:22:12 +0100
commit178834fedcf12d09655bb0c11d8ff74b650989e6 (patch)
tree011851f6c9f8b51182871473dd8b4987d0343697 /modules/hypotf
parentfb88b295e090486496c869d44a7b47ee8cbc4071 (diff)
downloadgnulib-178834fedcf12d09655bb0c11d8ff74b650989e6.tar.gz
New module 'hypotf'.
* lib/math.in.h (hypotf): New declaration. * lib/hypotf.c: New file. * m4/hypotf.m4: New file. * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared. (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF, REPLACE_HYPOTF. * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF, REPLACE_HYPOTF. * modules/hypotf: New file. * tests/test-math-c++.cc: Check the hypotf declaration. * doc/posix-functions/hypotf.texi: Mention the new module.
Diffstat (limited to 'modules/hypotf')
-rw-r--r--modules/hypotf32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/hypotf b/modules/hypotf
new file mode 100644
index 0000000000..82e09aa8a9
--- /dev/null
+++ b/modules/hypotf
@@ -0,0 +1,32 @@
+Description:
+hypotf() function: length of a vector in the plane.
+
+Files:
+lib/hypotf.c
+m4/hypotf.m4
+m4/mathfunc.m4
+
+Depends-on:
+math
+hypot [test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1]
+
+configure.ac:
+gl_FUNC_HYPOTF
+if test $HAVE_HYPOTF = 0 || test $REPLACE_HYPOTF = 1; then
+ AC_LIBOBJ([hypotf])
+fi
+gl_MATH_MODULE_INDICATOR([hypotf])
+
+Makefile.am:
+
+Include:
+<math.h>
+
+Link:
+$(HYPOTF_LIBM)
+
+License:
+LGPL
+
+Maintainer:
+Bruno Haible