Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Tim Rentsch <tr.17687@z991.linuxsc.com> |
|---|---|
| Newsgroups | comp.std.c |
| Subject | Re: Problem with ranks |
| Date | 2020-05-30 02:18 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <86r1v1rdaq.fsf@linuxsc.com> (permalink) |
| References | <ym86jKAqoCXFYStC@bongo-ra.co> <rasvjd$r7k$1@dont-email.me> |
James Kuyper <jameskuyper@alumni.caltech.edu> writes: > On 5/29/20 9:55 PM, Spiros Bousbouras wrote: > >> Assume an implementation with 2 extended integer types as follows : > > I suspect that you don't mean the following type names to be interpreted > literally, but it would have been better for you to choose identifiers > for those types which are reserved to the implementation, such as > __int24_t and __uint40_t. > >> - INT1 is signed , has 23 value bits and no corresponding unsigned type. > > "The standard and extended signed integer types are collectively called > signed integer types." (6.2.5p4). > "For each of the signed integer types, there is a corresponding (but > different) unsigned integer type ..." (6.2.5p6). > >> - UINT1 is unsigned , has 40 value bits and no corresponding signed type. > > That, however, is permitted, since 6.2.5p6 is asymmetrical. No, it isn't. Read 6.2.5 p6 more carefully. Not counting _Bool, the only types that are unsigned integer types each corresponds to a signed integer type. If a type doesn't have a corresponding signed integer type, it isn't an unsigned integer type (unless of course it is _Bool).
Back to comp.std.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Problem with ranks Spiros Bousbouras <spibou@gmail.com> - 2020-05-30 01:55 +0000
Re: Problem with ranks James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-05-30 02:48 -0400
Re: Problem with ranks Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-05-30 02:18 -0700
Re: Problem with ranks jameskuyper@alumni.caltech.edu - 2020-05-30 07:11 -0700
Re: Problem with ranks Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-06-28 05:54 -0700
Re: Problem with ranks James Kuyper <jameskuyper@alumni.caltech.edu> - 2020-05-30 09:04 -0400
Re: Problem with ranks Tim Rentsch <tr.17687@z991.linuxsc.com> - 2020-05-30 02:11 -0700
csiph-web