Mercurial > hg > octave-shane > gnulib-hg
comparison modules/hypotl @ 16519:52c75970f518
New module 'hypotl'.
* lib/math.in.h (hypotl): New declaration.
* lib/hypotl.c: New file.
* m4/hypotl.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
* modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
* modules/hypotl: New file.
* tests/test-math-c++.cc: Check the hypotl declaration.
* doc/posix-functions/hypotl.texi: Mention the new module.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Wed, 29 Feb 2012 15:46:25 +0100 |
parents | |
children | 1fcd2cd248a9 |
comparison
equal
deleted
inserted
replaced
16518:68b3e785bd8f | 16519:52c75970f518 |
---|---|
1 Description: | |
2 hypotl() function: length of a vector in the plane. | |
3 | |
4 Files: | |
5 lib/hypotl.c | |
6 m4/hypotl.m4 | |
7 m4/mathfunc.m4 | |
8 | |
9 Depends-on: | |
10 math | |
11 hypot [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1] | |
12 isfinite [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
13 fabsl [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
14 frexpl [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
15 ldexpl [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
16 sqrtl [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
17 isinf [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0] | |
18 | |
19 configure.ac: | |
20 gl_FUNC_HYPOTL | |
21 if test $HAVE_HYPOTL = 0; then | |
22 AC_LIBOBJ([hypotl]) | |
23 fi | |
24 gl_MATH_MODULE_INDICATOR([hypotl]) | |
25 | |
26 Makefile.am: | |
27 | |
28 Include: | |
29 <math.h> | |
30 | |
31 Link: | |
32 $(HYPOTL_LIBM) | |
33 | |
34 License: | |
35 LGPL | |
36 | |
37 Maintainer: | |
38 Bruno Haible |