This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: missing methods in inttypes.h


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
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]