issue with tgamma

Paul Zimmermann <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
       Hi,

I discovered the following issue with tgamma: for x=-0x1.13a5ccd87c9bbp+1008
it yields +Inf instead of NaN:

Checking tgamma with newlib-4.4.0.20231231
tgamma 0 -1 -0x1.13a5ccd87c9bbp+1008 [-nan] [inf] inf inf
libm gives inf
mpfr gives -nan

This issue was present in earlier versions of Newlib, but we only found it
recently since we improved our testing framework.

Paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.