Hash :
81018344
Author :
Date :
2012-03-10T12:26:57
log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11. * m4/log-ieee.m4: New file. * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether log works with a negative argument. Replace it if not. * lib/log.c (log): For negative arguments, return NaN. * modules/log-ieee (Files): Add m4/log-ieee.m4. (configure.ac): Invoke gl_FUNC_LOG_IEEE. * doc/posix-functions/log.texi: Mention the log-ieee module.
@node log
@section @code{log}
@findex log
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/log.html}
Gnulib module: log or log-ieee
Portability problems fixed by either Gnulib module @code{log} or @code{log-ieee}:
@itemize
@item
This function returns a wrong value for a minus zero argument on some platforms:
OSF/1 5.1.
@end itemize
Portability problems fixed by Gnulib module @code{log-ieee}:
@itemize
@item
This function returns a wrong value for a negative argument on some platforms:
NetBSD 5.1, Solaris 11 2011-11.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@end itemize