Hash :
fdb0fd9e
Author :
Date :
2010-12-21T15:44:21
New module 'truncf-ieee'. * modules/truncf-ieee: New file. * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used, test whether truncf works according to ISO C 99 with IEC 60559. * m4/truncf-ieee.m4: New file. * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF. * modules/math (Makefile.am): Substitute REPLACE_TRUNCF. * modules/truncf-ieee-tests: New file. * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c. * tests/test-truncf1.c (main): Remove signbit tests. * modules/truncf-tests (Depends-on): Remove 'signbit'. * doc/posix-functions/truncf.texi: Mention the new module.
@node truncf
@section @code{truncf}
@findex truncf
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/truncf.html}
Gnulib module: truncf or truncf-ieee
Portability problems fixed by either Gnulib module @code{truncf} or @code{truncf-ieee}:
@itemize
@item
This function is missing on some platforms:
FreeBSD 5.2.1, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, Solaris 9, Interix 3.5.
@item
This function is not declared (without @code{-D_GNU_SOURCE}) on some platforms:
glibc 2.8.
@end itemize
Portability problems fixed by Gnulib module @code{truncf-ieee}:
@itemize
@item
This function returns a positive zero for a minus zero argument
on some platforms:
OSF/1 5.1.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize