This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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 math/6810] tgamma() does not set errno for underflow error


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

Sample runs demonstrating the problem:

$ /tmp/mt_tgamma 1e3
errno == ERANGE
fetestexcept() says:  FE_OVERFLOW FE_INEXACT
tgamma(1.00000000000000000e+03)=inf
ERANGE FE_OVERFLOW +inf

$ /tmp/mt_tgamma -- -100000.5
errno == 0
fetestexcept() says:  FE_UNDERFLOW FE_INEXACT
tgamma(-1.00000500000000000e+05)=-0.00000000000000000e+00
0 FE_UNDERFLOW -0


-- 


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

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


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