This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: "big" integer constants


On 10/29/2011 01:01 AM, DJ Delorie wrote:
Is sizeof(short) == sizeof(int) consistently on 16 bit targets?
I don't know of any where sizeof(short) is less than 16 bits at least.
I picked 65535U because it's a valid "big" number regardless of how
big int/short/long are, as long as they're 16 bits or more.  I don't
think gcc has any support for 8-bit "int" targets anywhere.

At the very least, you know sizeof(int)>= sizeof(short) on all
targets.

I'm actually working on TR29123 hopefully to get in before stage1
ends.
Heh. I'm trying to get a new port finished :-)

Sorry this took so long. I got busy, then the holidays...

I just changed some big numbers to std::numeric_limits<std::tr1::uint16_t>::max().
No new testcases. Everything works.
There may have been things beyond the range of the test cases I was trying to capture but I'm not going to work on that right now.


Ed

Attachment: CL_specfun_max_iter
Description: Text document

Attachment: patch_specfun_max_iter
Description: Text document


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