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 libc/16151] strtod() incorrectly rounds 2^-1075 to 0x0.0000000000001p-1022


https://sourceware.org/bugzilla/show_bug.cgi?id=16151

Joseph Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at sourceware dot org   |jsm28 at gcc dot gnu.org

--- Comment #1 from Joseph Myers <jsm28 at gcc dot gnu.org> ---
Testing a patch.  This only applies to input that is exactly (plus or minus)
half the least subnormal and only if an entire normal mantissa fits in one MP
limb; in that case, the loop testing for extra bits set in the MANT_DIG initial
mantissa bits should have i < RETURN_LIMB_SIZE - 1 not RETURN_LIMB_SIZE (the
loop for the multiple-limb case has the correct bound).

-- 
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]