This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
bug in logarithm()
- From: Martin Koeppe <mkoeppe at gmx dot de>
- To: newlib at sources dot redhat dot com
- Date: Wed, 17 Oct 2007 01:21:14 +0200 (CEST)
- Subject: bug in logarithm()
Hi,
I just found a bug (or at least a discrepancy between doc and src) in
newlib's libm, files mathfp/s_logarithm.c and mathfp/sf_logarithm.c:
There the docs at the beginning of the files say, log(0) returns -Inf,
what the gawk test suite would also expect btw, but clearly the
implementation doesn't return -Inf, but NaN instead.
Martin