This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6803] scalb(), scalbln(), scalbn() do not set errno on overflow/underflow
- 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 11:11:06 -0000
- Subject: [Bug math/6803] scalb(), scalbln(), scalbn() do not set errno on overflow/underflow
- References: <20080731110558.6803.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 11:11 -------
Sample runs demonstrating the problem
$ /tmp/mt_scalb -- dbl_max 1000
errno == 0
fetestexcept() says: FE_OVERFLOW FE_INEXACT
scalb(1.79769313486231571e+308,1.00000000000000000e+03)=inf
0 FE_OVERFLOW +inf
$ /tmp/mt_scalb -- dbl_min -1000
errno == 0
fetestexcept() says: FE_UNDERFLOW FE_INEXACT
scalb(2.22507385850720138e-308,-1.00000000000000000e+03)=0.00000000000000000e+00
0 FE_UNDERFLOW +0
$ /tmp/mt_scalbln -- dbl_max 1000
errno == 0
fetestexcept() says: FE_OVERFLOW FE_INEXACT
scalbln(1.79769313486231571e+308,1000)=inf
0 FE_OVERFLOW +inf
$ /tmp/mt_scalbln -- dbl_min -1000
errno == 0
fetestexcept() says: FE_UNDERFLOW FE_INEXACT
scalbln(2.22507385850720138e-308,-1000)=0.00000000000000000e+00
0 FE_UNDERFLOW +0
$ /tmp/mt_scalbn -- dbl_max 1000
errno == 0
fetestexcept() says: FE_OVERFLOW FE_INEXACT
scalbn(1.79769313486231571e+308,1000)=inf
0 FE_OVERFLOW +inf
$ /tmp/mt_scalbn -- dbl_min -1000
errno == 0
fetestexcept() says: FE_UNDERFLOW FE_INEXACT
scalbn(2.22507385850720138e-308,-1000)=0.00000000000000000e+00
0 FE_UNDERFLOW +0
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6803
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.