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/fmod.texi
Bruno Haible 31bd9abc72 fmod-ieee: Work around test failures on OSF/1, mingw.
* m4/fmod-ieee.m4: New file.
* m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
whether fmod works with zero arguments. Replace it if not.
* lib/math.in.h (fmod): New declaration.
* lib/fmod.c: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
* modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
* modules/fmod (Files): Add lib/fmod.c.
(Depends-on): Add math, isinf, trunc, fma.
(configure.ac): Arrange to compile lib/fmod.c if needed.
* modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
m4/signbit.m4.
(configure.ac): Invoke gl_FUNC_FMOD_IEEE.
* tests/test-math-c++.cc: Check the declaration of fmod.
* doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2012-02-27 13:06:17 +01:00

27 lines
634 B
Plaintext

@node fmod
@section @code{fmod}
@findex fmod
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/fmod.html}
Gnulib module: fmod or fmod-ieee
Portability problems fixed by either Gnulib module @code{fmod} or @code{fmod-ieee}:
@itemize
@end itemize
Portability problems fixed by Gnulib module @code{fmod-ieee}:
@itemize
@item
This function has problems when the second argument is zero on some platforms:
OSF/1 5.1.
@item
This function has problems when the first argument is minus zero on some
platforms:
mingw, MSVC 9.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize