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: [patch]: Add support of new __int128 type for targets having 128-bit integer scalar support


On 05/25/2010 06:51 PM, Jason Merrill wrote:
> On 05/25/2010 12:00 PM, Joseph S. Myers wrote:
>> On Tue, 25 May 2010, Jason Merrill wrote:
>>> So, how do you write the largest unsigned __int128 as a literal?
>>
>> ((unsigned __int128)-1 or ~(unsigned
>> __int128)0 would be the simplest way of expressing that particular
>> value.)
> Good enough.
By the way, if people interested in types __int128 and __uint128 are
willing to have a look to libstdc++/40856, I attached there a patch
implementing numeric_limits<__int128> and numeric_limits<__uint128>
which seems almost ready to go in for 4.6.0... In particular, I'm I
right to assume that the facilities are available for:

#if ((defined(__LP64__) && !defined(__hppa__)) || defined(_WIN64))

?? Other comments?

Thanks,
Paolo.


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