On Sat, 05 Aug 2006 21:45:52 GMT, Keith Thompson <kst-> wrote
in comp.lang.c:
> Frederick Gotham <> writes:
> > Here's an excerpt from the Dinkumware library reference:
> > __________
> > | uint8_t, uint16_t, uint32_t, uint64_t
> > |
> > | The types each specify an unsigned integer type
> > | whose representation has exactly eight, 16, 32,
> > | or 64 bits, respectively.
> > __________
> >
> > How could that be possible if we had a 36-Bit system such as the following?
> >
> > char: 9-Bit
> > short: 18-Bit
> > int: 36-Bit
> > long: 36-Bit
>
> It isn't. The uintN_t types are optional.
Actually, "semi optional" would be more accurate. If an
implementation provides any or all types which meet the definition,
namely exactly that many bits, no padding, and 2's complement
representation for negative values in the signed types, it is required
to provide the appropriate typedefs.
--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c
http://c-faq.com/
comp.lang.c++
http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html