mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-09-02 15:41:25 +03:00
* m4/hypotl-ieee.m4: New file. * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present, test whether hypotl works with mixed NaN and Infinity arguments. Replace it if not. * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL. * modules/math (Makefile.am): Substitute REPLACE_HYPOTL. * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL. (Depends-on): Update conditions. * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4. (Depends-on): Add hypot-ieee. (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE. * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
27 lines
761 B
Plaintext
27 lines
761 B
Plaintext
@node hypotl
|
|
@section @code{hypotl}
|
|
@findex hypotl
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/hypotl.html}
|
|
|
|
Gnulib module: hypotl or hypotl-ieee
|
|
|
|
Portability problems fixed by either Gnulib module @code{hypotl} or @code{hypotl-ieee}:
|
|
@itemize
|
|
@item
|
|
This function is missing on some platforms:
|
|
FreeBSD 6.0, NetBSD 5.0, OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11, IRIX 6.5, Solaris 9, Cygwin, MSVC 9, Interix 3.5, BeOS.
|
|
@end itemize
|
|
|
|
Portability problems fixed by Gnulib module @code{hypotl-ieee}:
|
|
@itemize
|
|
@item
|
|
When the arguments are mixed NaN and Infinity, this function returns a wrong
|
|
value on some platforms:
|
|
OSF/1 5.1, mingw, MSVC 9.
|
|
@end itemize
|
|
|
|
Portability problems not fixed by Gnulib:
|
|
@itemize
|
|
@end itemize
|