V
vippstar
Hello
Let's assume CHAR_BIT == 8, sizeof (int) == 4 and INT_MAX == 32767
(that'd mean int has 32 bits, of which only the 15 are value bits)
Now, my question is, are the value bits required to be contiguous in
the representation?
Is the position of the signed bit fixed (ie, the last bit, the first
bit)
Or even the craziest representation such as: (p = padding bits, v =
value bits, s = sign bit)
pvpvpvpv pvspvpvp pvpvpvpv pvpvpvpv
is allowed?
Let's assume CHAR_BIT == 8, sizeof (int) == 4 and INT_MAX == 32767
(that'd mean int has 32 bits, of which only the 15 are value bits)
Now, my question is, are the value bits required to be contiguous in
the representation?
Is the position of the signed bit fixed (ie, the last bit, the first
bit)
Or even the craziest representation such as: (p = padding bits, v =
value bits, s = sign bit)
pvpvpvpv pvspvpvp pvpvpvpv pvpvpvpv
is allowed?