[Bug math/6809] tgamma() sets errno inconsistently for domain error

mtk dot manpages at gmail dot com sourceware-bugzilla@sourceware.org
Thu Jul 31 13:36:00 GMT 2008


------- Additional Comments From mtk dot manpages at gmail dot com  2008-07-31 13:35 -------
Created an attachment (id=2881)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=2881&action=view)
test program

Test runs demonstrating the problem:

$ /tmp/mt_tgamma -- -1
errno == EDOM
fetestexcept() says:  FE_INVALID
tgamma(-1.00000000000000000e+00)=nan
EDOM FE_INVALID nan

$ /tmp/mt_tgamma -- -inf
errno == 0
fetestexcept() says:  FE_INVALID
tgamma(-inf)=nan
0 FE_INVALID nan


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=6809

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the Glibc-bugs mailing list