Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c > #164664
| From | Meredith Montgomery <mmontgomery@levado.to> |
|---|---|
| Newsgroups | comp.lang.c |
| Subject | C99: 7.18.1.1 Exact-width integer types |
| Date | 2022-01-26 21:24 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <86k0emc9ga.fsf@levado.to> (permalink) |
--8<---------------cut here---------------start------------->8--- 7.18.1.1 Exact-width integer types 1. The typedef name intN_t designates a signed integer type with width N, no padding bits, and a two's complement representation. Thus, int8_t denotes a signed integer type with a width of exactly 8 bits. --8<---------------cut here---------------end--------------->8--- It seems C99 garantees that these nice integers types will use two's complement. But I guess we have no such guarantee for int or char? It's only for intN_t. Can you share your experience on this? Thank you!
Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread
C99: 7.18.1.1 Exact-width integer types Meredith Montgomery <mmontgomery@levado.to> - 2022-01-26 21:24 -0300
Re: C99: 7.18.1.1 Exact-width integer types Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2022-01-26 16:48 -0800
Re: C99: 7.18.1.1 Exact-width integer types Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2022-01-26 17:02 -0800
Re: C99: 7.18.1.1 Exact-width integer types James Kuyper <jameskuyper@alumni.caltech.edu> - 2022-01-26 21:32 -0500
Re: C99: 7.18.1.1 Exact-width integer types David Brown <david.brown@hesbynett.no> - 2022-01-27 09:14 +0100
csiph-web