M
Mihai Rusu
Hello
I am trying to figure out if the standard allows integral type representations with padding (ie value representation != object representation).
A conforming implementation can have:
- a 32bit int and 32bit unsigned int but have the unsigned int not use the sign bit for value representation? (so INT_MAX == UINT_MAX == 2^32-1)
- a 33bit int and a 33bit unsigned int and both types have the 33th bit as padding?
By reading 3.9.1 I suppose they can have padding.
I am trying to figure out if the standard allows integral type representations with padding (ie value representation != object representation).
A conforming implementation can have:
- a 32bit int and 32bit unsigned int but have the unsigned int not use the sign bit for value representation? (so INT_MAX == UINT_MAX == 2^32-1)
- a 33bit int and a 33bit unsigned int and both types have the 33th bit as padding?
By reading 3.9.1 I suppose they can have padding.