1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-16 01:22:18 +03:00
Files
gnulib/doc/posix-functions/modf.texi
Bruno Haible b5cc9885b4 modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
* m4/modf-ieee.m4: New file.
* m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
whether modf works with NaN and Inf. Replace it if not.
* lib/math.in.h (modf): New declaration.
* lib/modf.c: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
* modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
* modules/modf (Files): Add lib/modf.c.
(Depends-on): Add math, isfinite, trunc, isinf.
(configure.ac): Addrange to compile lib/modf.c if needed.
* modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_MODF_IEEE.
* tests/test-math-c++.cc: Check the declaration of modf.
* doc/posix-functions/modf.texi: Mention the modf-ieee module.
2012-02-27 01:44:57 +01:00

26 lines
648 B
Plaintext

@node modf
@section @code{modf}
@findex modf
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/modf.html}
Gnulib module: modf or modf-ieee
Portability problems fixed by either Gnulib module @code{modf} or @code{modf-ieee}:
@itemize
@end itemize
Portability problems fixed by Gnulib module @code{modf-ieee}:
@itemize
@item
This function has problems with a NaN argument on some platforms:
NetBSD 5.1, Cygwin.
@item
This function has problems with infinite arguments on some platforms:
FreeBSD 6.4, OpenBSD 4.9, IRIX 6.5, OSF/1 5.1.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize