view 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
line wrap: on
line source

Description:
hypotl() function: length of a vector in the plane.

Files:
lib/hypotl.c
m4/hypotl.m4
m4/mathfunc.m4

Depends-on:
math
hypot           [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 1]
isfinite        [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
fabsl           [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
frexpl          [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
ldexpl          [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
sqrtl           [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]
isinf           [test $HAVE_HYPOTL = 0 && test $HAVE_SAME_LONG_DOUBLE_AS_DOUBLE = 0]

configure.ac:
gl_FUNC_HYPOTL
if test $HAVE_HYPOTL = 0; then
  AC_LIBOBJ([hypotl])
fi
gl_MATH_MODULE_INDICATOR([hypotl])

Makefile.am:

Include:
<math.h>

Link:
$(HYPOTL_LIBM)

License:
LGPL

Maintainer:
Bruno Haible