This is the mail archive of the
mailing list for the libstdc++ project.
Re: [patch] change specific int128 -> generic intN
- From: DJ Delorie <dj at redhat dot com>
- To: libstdc++ at gcc dot gnu dot org
- Cc: gcc-patches at gcc dot gnu dot org, libstdc++ at gcc dot gnu dot org
- Date: Thu, 8 May 2014 22:21:45 -0400
- Subject: Re: [patch] change specific int128 -> generic intN
- Authentication-results: sourceware.org; auth=none
- References: <201404142303 dot s3EN3ONP009938 at greed dot delorie dot com> <201405082334 dot s48NYZni001625 at greed dot delorie dot com> <alpine dot DEB dot 2 dot 10 dot 1405090211170 dot 3709 at laptop-mg dot saclay dot inria dot fr>
> Assuming that the formula sizeof(type)*char_bit==precision works for all
It doesn't. THe MSP430 has __int20 for example.
Would it be acceptable for the compiler to always define a set of
macros for each of the intN types? I would have thought that would be
discouraged, but it would be an easier way to handle it.