This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFH] A simple way to figure out the number of bits used by a long double
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>
- Date: Fri, 26 Feb 2010 13:07:19 +0100
- Subject: Re: [RFH] A simple way to figure out the number of bits used by a long double
- References: <4B87A9D5.6010202@oracle.com> <m2k4u0b3wk.fsf@igel.home>
On 02/26/2010 01:03 PM, Andreas Schwab wrote:
> Paolo Carlini <paolo.carlini@oracle.com> writes:
>> At the moment I'm trying to cook up something fixing that count with
>> LDBL_MANT_DIG, but maybe there is something simpler, maybe using
>> preprocessor builtins?!?
>>
> What's wrong with LDBL_MANT_DIG?
>
Nothing Andreas, the information is all there, essentially. I was hoping
in something more "clever", and closer to the actual number, including
the exponent, etc.
Paolo.