This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/6797] lround() and llround() do not set errno on domain error
- 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:14:14 -0000
- Subject: [Bug math/6797] lround() and llround() do not set errno on domain error
- References: <20080731101232.6797.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:14 -------
Created an attachment (id=2860)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2860&action=view)
test program
Sample runs demonstrating the problem:
$ /tmp/mt_lround inf
errno == 0
fetestexcept() says: FE_INVALID
lround(inf)=-2147483648
0 FE_INVALID normal
$ /tmp/mt_llround inf
errno == 0
fetestexcept() says: FE_INVALID
llround(inf)=-9223372036854775808
0 FE_INVALID normal
$ /tmp/mt_lround nan
errno == 0
fetestexcept() says: FE_INVALID
lround(nan)=-2147483648
0 FE_INVALID normal
$ /tmp/mt_llround nan
errno == 0
fetestexcept() says: FE_INVALID
llround(nan)=-9223372036854775808
0 FE_INVALID normal
--
http://sourceware.org/bugzilla/show_bug.cgi?id=6797
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.