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]

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


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