This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6799] nextafter() and nexttoward() doen't set errno on overflow/underflow errors
- 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 10:42:38 -0000
- Subject: [Bug math/6799] nextafter() and nexttoward() doen't set errno on overflow/underflow errors
- References: <20080731102542.6799.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 10:42 -------
Sample runs demonstrating the problem:
$ /tmp/mt_nextafter dbl_max inf
errno == 0
fetestexcept() says: FE_OVERFLOW FE_INEXACT
nextafter(1.79769313486231571e+308,inf)=inf
0 FE_OVERFLOW +inf
$ /tmp/mt_nextafter dbl_min 0
errno == 0
fetestexcept() says: FE_UNDERFLOW FE_INEXACT
nextafter(2.22507385850720138e-308,0.00000000000000000e+00)=2.22507385850720089e-308
0 FE_UNDERFLOW subnormal
$ /tmp/mt_nexttoward dbl_max inf
errno == 0
fetestexcept() says: FE_OVERFLOW FE_INEXACT
nexttoward(1.79769313486231571e+308,inf)=inf
0 FE_OVERFLOW +inf
$ /tmp/mt_nexttoward dbl_min 0
errno == 0
fetestexcept() says: FE_UNDERFLOW FE_INEXACT
nexttoward(2.22507385850720138e-308,0.000000000000000000000000000000000000e+00)=2.22507385850720089e-308
0 FE_UNDERFLOW subnormal
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6799
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.