Re: Anyone object to the following change in libc?

From: Stefan Farfeleder <stefan_at_fafoe.narf.at>
Date: Fri, 31 Oct 2003 10:14:28 +0100
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
Received on Fri Oct 31 2003 - 00:14:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:27 UTC