mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-18 23:42:00 +03:00
* modules/trunc-ieee: New file. * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test whether trunc works according to ISO C 99 with IEC 60559. * m4/trunc-ieee.m4: New file. * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set. * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC. * modules/math (Makefile.am): Substitute REPLACE_TRUNC. * modules/trunc-ieee-tests: New file. * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c. * tests/test-trunc1.c (main): Remove signbit tests. * modules/trunc-tests (Depends-on): Remove 'signbit'. * doc/posix-functions/trunc.texi: Mention the new module.
30 lines
753 B
Plaintext
30 lines
753 B
Plaintext
@node trunc
|
|
@section @code{trunc}
|
|
@findex trunc
|
|
|
|
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/trunc.html}
|
|
|
|
Gnulib module: trunc or trunc-ieee
|
|
|
|
Portability problems fixed by either Gnulib module @code{trunc} or @code{trunc-ieee}:
|
|
@itemize
|
|
@item
|
|
This function is missing on some platforms:
|
|
FreeBSD 5.2.1, NetBSD 3.0, OpenBSD 3.8, 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{trunc-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
|