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/6795] hypot() does not set errno consistently on error


------- 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.


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