This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6787] exp10() does not consistently set errno
- 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 08:55:03 -0000
- Subject: [Bug math/6787] exp10() does not consistently set errno
- References: <20080730150120.6787.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 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.