bit_size_type - a data type?
Florian Weimer
fw@deneb.enyo.de
Tue May 13 08:39:00 GMT 2008
* Richard Kenner:
>> bitsizetype is a type that can hold any values of sizetype *
>> BITS_PER_UNIT so we can safely do bit-size calculations without overflow.
>> This type shouldn't end up used in code though.
>
> Unfortunately, it does, though not in C. Ada's 'Size attribute returns
> the size in bits, so the proper type for that computations is bitsizetype,
> though many computations end up being constant-folded.
Ada used a 32-bit signed integer type in this case, limiting object size
to 2**31 bits. Is this no longer the case?
More information about the Gcc
mailing list