3 ms·
The standard requires longs to be at least 32 bits wide. Then how can int32_t not exist? And C99 requires long longs to be at least 64 bits wide.
by young_unixer 6y ago
The standard requires longs to be at least 32 bits wide. Then how can int32_t not exist?
And C99 requires long longs to be at least 64 bits wide.
- pjmlp 6y agoWhen targeting an 8 or 16 bit processor.
- josefx 6y agoWhile that isn't really relevant as the sizes used by my example could just be larger (if intmax_t worked as intended, which of course it doesn't), the fixed width types are all optional. For example on systems that use ones complement you would have a intmax_t, but no int32_t or any of the others.