[Bug math/6787] exp10() does not consistently set errno

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


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

Sample run showing problem.  Note that errno is set for overflow, but not for
underflow.

$ /tmp/mt_exp10 -- -1e5
errno == 0
fetestexcept() says:  FE_UNDERFLOW FE_INEXACT
exp10(-1.00000000000000000e+05)=0.00000000000000000e+00
0 FE_UNDERFLOW +0

$ /tmp/mt_exp10 -- 1e5
errno == ERANGE
fetestexcept() says:  FE_OVERFLOW FE_INEXACT
exp10(1.00000000000000000e+05)=inf
ERANGE FE_OVERFLOW +inf


-- 


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

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