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/6787] exp10() does not consistently set errno


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


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