This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: __intN patch 3/5: main __int128 -> __intN conversion.


On Fri, 22 Aug 2014, DJ Delorie wrote:

> > Maybe you need to refactor __glibcxx_digits so there is a version taking 
> > the bitsize as an argument rather than using sizeof(T) * __CHAR_BIT__, but 
> > that should be the only change needed to handle such types with the 
> > existing macros.  The bitsize macros should be the only ones needing 
> > predefining to pass information to libstdc++.
> 
> Like this?

Yes (well, the libstdc++ changes will need to go to the libstdc++ mailing 
list for review there, but this is the sort of thing I'd expect to keep 
the way libstdc++ defines these limits as consistent as possible between 
different types).

-- 
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]