This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6795] hypot() does not set errno consistently on 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 09:56:27 -0000
- Subject: [Bug math/6795] hypot() does not set errno consistently on error
- References: <20080731095440.6795.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 09:56 -------
Created an attachment (id=2857)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2857&action=view)
test program
Sample runs demonstrating the problem:
$ /tmp/mt_hypot dbl_max dbl_max
errno == ERANGE
fetestexcept() says: FE_OVERFLOW FE_INEXACT
hypot(1.79769313486231571e+308,1.79769313486231571e+308)=inf
ERANGE FE_OVERFLOW +inf
$ /tmp/mt_hypot subnormal:20 subnormal:20
errno == 0
fetestexcept() says: FE_UNDERFLOW FE_INEXACT
hypot(2.12199579096527232e-314,2.12199579096527232e-314)=3.00095522690537735e-314
0 FE_UNDERFLOW subnormal
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6795
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.