[RFH] A simple way to figure out the number of bits used by a long double

Paolo Carlini paolo.carlini@oracle.com
Fri Feb 26 13:52:00 GMT 2010


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.



More information about the Gcc mailing list