[Bug libc/13941] printf of subnormal 'long double' numbers wrong on PowerPC
schwab@linux-m68k.org
sourceware-bugzilla@sourceware.org
Tue Apr 3 13:38:00 GMT 2012
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.
More information about the Glibc-bugs
mailing list