3 ms·
CHAR_BIT is required to be at least 8, int8_t is required to be exactly 8 bits if present, sizeof(int8_t) is required to return an integer size where sizeof(cha
by account42 5y ago
CHAR_BIT is required to be at least 8, int8_t is required to be exactly 8 bits if present, sizeof(int8_t) is required to return an integer size where sizeof(char) is 1. Hence, if int8_t is present then CHAR_BIT must be 8 and sizeof(int8_t) == 1.
- steveklabnik 5y agoTo add a teeny bit to this, POSIX specifies CHAR_BIT must be 8, but C defines it as >= 8.