This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in logarithm()


Martin Koeppe wrote:

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
A fix has been made. Thanks.

-- Jeff J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]