This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/2557] Incorrect return from double scalbln (-0X1.5555555555556P-2, 4294966274)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]