This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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]

Re: sizeof(long double) vs. std::numeric_limits and x86-64 vs x86


On 09/27/2011 01:46 AM, Ian Lance Taylor wrote:
Alas, no. On x86_64 long double is an 80-bit floating point number,
just as on 32-bit x86.  The size is 16 bytes because the x86_64 prefers
to align large values to 8-byte boundaries.

gcc works this way because the 80-bit floating point format is supported
directly in hardware, unlike the 128-bit format.



I suspected that this is the case, but hoped for the better.


Thanks

--

Michael



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