Anyone object to the following change in libc?

Stefan Farfeleder stefan at fafoe.narf.at
Fri Oct 31 01:14:32 PST 2003


On Fri, Oct 31, 2003 at 06:01:34PM +1100, Bruce Evans wrote:

> POSIX requires in addition [u]int{8,16,32}_t, and [u]int64_t if 64 bit
> integer types exist.  It says that the existence of int8_t implies
> that a byte is 8 bits and CHAR_BIT is 8.  I'm not sure what prevents
> int8_t being smaller than char.


It follows from the fact int8_t isn't allowed to contain padding bits and
from 6.2.6.1 saying:

"Values stored in non-bit-field objects of any other object type consist of n ×
CHAR_BIT bits, where n is the size of an object of that type, in bytes." 

Stefan


More information about the freebsd-current mailing list