"big" integer constants
Ed Smith-Rowland
3dw4rd@verizon.net
Wed Jan 4 03:48:00 GMT 2012
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_specfun_max_iter
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120104/79f23753/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_specfun_max_iter
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20120104/79f23753/attachment-0001.ksh>
More information about the Libstdc++
mailing list