[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: log, logf, logl: more tests
From: |
Bruno Haible |
Subject: |
Re: log, logf, logl: more tests |
Date: |
Sat, 10 Mar 2012 16:18:41 +0100 |
User-agent: |
KMail/4.7.4 (Linux/3.1.0-1.2-desktop; KDE/4.7.4; x86_64; ; ) |
Bruno Haible wrote:
> Enhanced tests for the log(), logf(), logl() function show bugs on
> OSF/1 5.1:
And the IEEE tests for these functions fail on Solaris and NetBSD 5.1:
log(negative) = -Inf (should be NaN)
Workarounds added:
2012-03-10 Bruno Haible <address@hidden>
logf-ieee: Work around test failure on NetBSD 5.1.
* m4/logf-ieee.m4: New file.
* m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
whether logf works with a negative argument. Replace it if not.
* lib/logf.c (logf): For negative arguments, return NaN.
* modules/logf-ieee (Files): Add m4/logf-ieee.m4.
(configure.ac): Invoke gl_FUNC_LOGF_IEEE.
* doc/posix-functions/logf.texi: Mention the logf-ieee module.
logf-ieee: Work around test failure on Solaris 9.
* modules/logf-ieee (Depends-on): Add log-ieee.
(configure.ac): Require gl_FUNC_LOGF.
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.
Tests for module 'logl-ieee'.
* modules/logl-ieee-tests: New file.
* tests/test-logl-ieee.c: New file.
New module 'logl-ieee'.
* modules/logl-ieee: New file.
Tests for module 'log-ieee'.
* modules/log-ieee-tests: New file.
* tests/test-log-ieee.c: New file.
New module 'log-ieee'.
* modules/log-ieee: New file.
Tests for module 'logf-ieee'.
* modules/logf-ieee-tests: New file.
* tests/test-logf-ieee.c: New file.
* tests/test-log-ieee.h: New file.
New module 'logf-ieee'.
* modules/logf-ieee: New file.