This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6810] tgamma() does not set errno for underflow error
- From: "mtk dot manpages at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 31 Jul 2008 13:53:55 -0000
- Subject: [Bug math/6810] tgamma() does not set errno for underflow error
- References: <20080731135225.6810.mtk.manpages@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- 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.