This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/2557] Incorrect return from double scalbln (-0X1.5555555555556P-2, 4294966274)
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sun, 19 Feb 2012 17:56:47 +0000
- Subject: [Bug math/2557] Incorrect return from double scalbln (-0X1.5555555555556P-2, 4294966274)
- Auto-submitted: auto-generated
- References: <bug-2557-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=2557
Joseph Myers <jsm28 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|SUSPENDED |RESOLVED
Resolution| |INVALID
--- Comment #2 from Joseph Myers <jsm28 at gcc dot gnu.org> 2012-02-19 17:56:47 UTC ---
scalbln takes a "long" second argument, which on x86_64 is a signed 64-bit
value. When that is 4294966274, a large positive value, a result of -inf as
reported here is the correct result. If you pass (int)4294966274, a negative
value, then you do get -0X0.5555555555556P-1022 as expected. So there is no
bug here.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.