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/13941] printf of subnormal 'long double' numbers wrong on PowerPC


http://sourceware.org/bugzilla/show_bug.cgi?id=13941

Andreas Schwab <schwab@linux-m68k.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc-unknown-linux-gnu   |
              Build|powerpc-unknown-linux-gnu   |

--- Comment #2 from Andreas Schwab <schwab@linux-m68k.org> 2012-04-03 13:37:04 UTC ---
It's a compiler bug, it miscomputes LDBL_MIN_EXP which is used by
__mpn_extract_long_double.  Replacing it with the correct value -1021 fixes
this bug.

#define __LDBL_MIN_10_EXP__ (-291)
#define __LDBL_MIN_EXP__ (-968)
#define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L

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