bug in logarithm()

Martin Koeppe mkoeppe@gmx.de
Wed Oct 17 07:52:00 GMT 2007


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.


More information about the Newlib mailing list