"big" integer constants
DJ Delorie
dj@redhat.com
Sat Oct 29 05:02:00 GMT 2011
> 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 :-)
More information about the Libstdc++
mailing list