[patch] change specific int128 -> generic intN
Fri May 9 07:59:00 GMT 2014
On Thu, 8 May 2014, DJ Delorie wrote:
>> Assuming that the formula sizeof(type)*char_bit==precision works for all
> It doesn't. THe MSP430 has __int20 for example.
Well, it wasn't a hard requirement, it is just that the library has to
use a more complicated way to get the precision (use (unsigned TYPE)(-1)
to get the unsigned max and compute the precision from that, probably).
> Would it be acceptable for the compiler to always define a set of
> macros for each of the intN types?
What set of macros do you have in mind?
> I would have thought that would be discouraged,
If we can't think of another way...
More information about the Libstdc++