This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Two suggestions for gcc C compiler to extend C language (by WD Smith)


On Tue, 26 Jul 2016, Warren D Smith wrote:

> > Only sizes which are an integer number of bytes with no padding bits.
> 
> wikipedia:

Wikipedia is not the standard (and, to be clear, C99 before TC3 had 
various defects in the <stdint.h> specification as well, so you should not 
refer to pre-TC3 versions for understanding <stdint.h> requirements).  
C11 6.2.6.1#2 and #4 require that non-bit-fields have an integer number of 
bytes and consist of n*CHAR_BIT bits, and 7.20.1.1#1 and #2 require the 
absence of padding bits in intN_t and uintN_t.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]