On 02/26/2010 03:57 PM, Paolo Carlini wrote:
> On 02/26/2010 03:56 PM, Andreas Schwab wrote:
>
>> Paolo Carlini <[email protected]> writes:
>>
>>
>>
>>> Thanks. Currently I'm thinking of doing something very simple, like:
>>>
>>> const size_t __size = __LDBL_MANT_DIG__ == 64 ? 10 : sizeof(__val);
>>>
>>> seems conservative and I think it covers all the cases we really
>>> support.
>>>
>>>
>> What is __size supposed to represent?
>>
> A size.
>
Andreas, more seriously, if you mean that __CHAR_BIT__ can be != 8, I
don't think we are *really* supporting that kind of non-Posix target
anyway in the C++ runtime. And here we are talking only about C++1x
features. Anyway, do you think I should write something like:
(80 + __CHAR_BIT__ - 1) / __CHAR_BIT__
instead of 10?
Not a big deal...
Paolo.