missing methods in inttypes.h

Joseph S. Myers joseph@codesourcery.com
Sun Aug 4 20:41:00 GMT 2013

On Fri, 2 Aug 2013, Corinna Vinschen wrote:

> That reminds me of a type weirdness.  On x86_64, gcc supports the
> datatype __int128.  Nevertheless, when asking for the size of intmax_t,
> it returns 8, not 16.  This is independent of the platform.  The result
> of the following testcase is the same on Linux as well as on Cygwin:

I think of __int128 as a "sui generis extended type", and not an "extended 
integer type".  Although in principle it would be perfectly possible to 
change intmax_t in the glibc ABI so as to make __int128 an extended 
integer type (using symbol versioning as was done for long double for 
various architectures some years ago), it's not clear it's sufficiently 
useful to do so.

Joseph S. Myers

More information about the Newlib mailing list